Re: [PATCH] iio: adc: ad7476: fix clang -Wpointer-bool-conversion warning

2020-05-08 Thread Nick Desaulniers
On Tue, May 5, 2020 at 7:24 AM Arnd Bergmann wrote: > > Checking the pointer value of st->chip_info->convst_channel is pointless > since this this an array inside of a struct: even if st->chip_info is NULL, > the pointer is non-zero. Clang warns about this: > > drivers/iio/adc/ad7476.c:312:40:

Re: [PATCH] iio: adc: ad7476: fix clang -Wpointer-bool-conversion warning

2020-05-05 Thread Ardelean, Alexandru
On Tue, 2020-05-05 at 16:23 +0200, Arnd Bergmann wrote: > [External] > > Checking the pointer value of st->chip_info->convst_channel is pointless > since this this an array inside of a struct: even if st->chip_info is NULL, > the pointer is non-zero. Clang warns about this: > >

[PATCH] iio: adc: ad7476: fix clang -Wpointer-bool-conversion warning

2020-05-05 Thread Arnd Bergmann
Checking the pointer value of st->chip_info->convst_channel is pointless since this this an array inside of a struct: even if st->chip_info is NULL, the pointer is non-zero. Clang warns about this: drivers/iio/adc/ad7476.c:312:40: warning: address of array 'st->chip_info->convst_channel' will