Re: [PATCH] staging: iio: cdc/ad7746: fix missing return value

2016-10-26 Thread Eva Rachel Retuya
On Tue, Oct 25, 2016 at 05:27:07PM +0100, Jonathan Cameron wrote: > On 25/10/16 16:56, Arnd Bergmann wrote: > > As found by "gcc -Wmaybe-uninitialized", the latest change to the > > driver lacked an initalization for the return code in one of the > > added cases: > > > >

Re: [PATCH] staging: iio: cdc/ad7746: fix missing return value

2016-10-25 Thread Jonathan Cameron
On 25/10/16 16:56, Arnd Bergmann wrote: > As found by "gcc -Wmaybe-uninitialized", the latest change to the > driver lacked an initalization for the return code in one of the > added cases: > > drivers/staging/iio/cdc/ad7746.c: In function ‘ad7746_read_raw’: >

[PATCH] staging: iio: cdc/ad7746: fix missing return value

2016-10-25 Thread Arnd Bergmann
As found by "gcc -Wmaybe-uninitialized", the latest change to the driver lacked an initalization for the return code in one of the added cases: drivers/staging/iio/cdc/ad7746.c: In function ‘ad7746_read_raw’: drivers/staging/iio/cdc/ad7746.c:655:2: error: ‘ret’ may be used uninitialized in this