Re: [PATCH] iio: accel: adxl367: Fix handled initialization in adxl367_irq_handler()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 26 Feb 2022 21:49:16 +0200
Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote:

> On Thu, Feb 24, 2022 at 11:25 PM Nathan Chancellor <nathan@xxxxxxxxxx> wrote:
> 
> ...
> 
> >   drivers/iio/accel/adxl367.c:879:14: note: initialize the variable 'handled' to silence this warning
> >           bool handled;
> >                       ^  
> 
> >                        = 0  
> 
> Bad advice (at minimum it should be false, but in general it might
> hide a real issue)

True. Thankfully Nathan did the right thing and looked for the real
problem :)

Jonathan

> 
> >   1 error generated.  
> 




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux