summaryrefslogtreecommitdiffstats
path: root/drivers/iio/temperature/maxim_thermocouple.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-10-25 17:56:23 +0200
committerJonathan Cameron <jic23@kernel.org>2016-10-25 17:25:34 +0100
commit3089ec2c104ccfb7295d6c2a25d5b505cc59669b (patch)
treefdc1eecb6933c5aa7e921caf9cb79c82e2d7293c /drivers/iio/temperature/maxim_thermocouple.c
parent3904b28efb2c780c23dcddfb87e07fe0230661e5 (diff)
downloadop-kernel-dev-3089ec2c104ccfb7295d6c2a25d5b505cc59669b.zip
op-kernel-dev-3089ec2c104ccfb7295d6c2a25d5b505cc59669b.tar.gz
staging: iio: cdc/ad7746: fix missing return value
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 function [-Werror=maybe-uninitialized] This sets it to IIO_VAL_INT, which I think is what we want here. Fixes: 2296c0623eb7 ("staging: iio: cdc: ad7746: implement IIO_CHAN_INFO_SAMP_FREQ") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/temperature/maxim_thermocouple.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud