Re: [PATCH] iio: kfifo: mask flags without zero-check in devm_iio_kfifo_buffer_setup()

2021-03-07 Thread Jonathan Cameron
On Sat, 6 Mar 2021 18:28:34 +0200 Alexandru Ardelean wrote: > As pointed by Lars, this doesn't require a zero-check. Also, while looking > at this a little closer at it (again), the masking can be done later, as > there is a zero-check for 'mode_flags' anyway, which returns -EINVAL. And > we

[PATCH] iio: kfifo: mask flags without zero-check in devm_iio_kfifo_buffer_setup()

2021-03-06 Thread Alexandru Ardelean
As pointed by Lars, this doesn't require a zero-check. Also, while looking at this a little closer at it (again), the masking can be done later, as there is a zero-check for 'mode_flags' anyway, which returns -EINVAL. And we only need the 'mode_flags' later in the logic. This change is more of a