commit | 50d4b3062d6d4f165c76854a7644b1502836f9b9 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat Aug 18 09:48:00 2012 +0100 |
committer | Jonathan Cameron <jic23@kernel.org> | Mon Aug 27 19:00:51 2012 +0100 |
tree | be3054fcd1be653399d24583a6a219b08fdf9113 | |
parent | 95d1c8c7e26e303ccab5b65fe0ce04f70f42ea8a [diff] |
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>