staging:iio: prevent divide by zero bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 18 Aug 2012 08:48:00 +0000 (09:48 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 27 Aug 2012 18:00:51 +0000 (19:00 +0100)
commit50d4b3062d6d4f165c76854a7644b1502836f9b9
treebe3054fcd1be653399d24583a6a219b08fdf9113
parent95d1c8c7e26e303ccab5b65fe0ce04f70f42ea8a
staging:iio: prevent divide by zero bugs

"val" is used as a divisor later, so we should check for zero here to
avoid a division by zero.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7192.c
drivers/staging/iio/gyro/adis16260_core.c
drivers/staging/iio/imu/adis16400_core.c
drivers/staging/iio/meter/ade7753.c
drivers/staging/iio/meter/ade7754.c
drivers/staging/iio/meter/ade7759.c