lkml.org 
[lkml]   [2021]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v6 02/24] iio: kfifo: add devm_iio_kfifo_buffer_setup() helper
    From
    Date
    On 2/15/21 11:40 AM, Alexandru Ardelean wrote:
    > +int devm_iio_kfifo_buffer_setup(struct device *dev,
    > + struct iio_dev *indio_dev,
    > + int mode_flags,
    > + const struct iio_buffer_setup_ops *setup_ops)
    > +{
    > + struct iio_buffer *buffer;
    > +
    > + if (mode_flags)
    > + mode_flags &= kfifo_access_funcs.modes;

    The if seems unnecessary. If it is 0 and we AND it with something it is
    still 0.

    \
     
     \ /
      Last update: 2021-02-28 09:08    [W:4.272 / U:0.116 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site