]> git.baikalelectronics.ru Git - kernel.git/commit
iio: accel: mma8452: define unsigned return values where appropriate
authorMartin Kepplinger <martink@posteo.de>
Mon, 21 Nov 2016 19:53:54 +0000 (20:53 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Dec 2016 08:56:28 +0000 (08:56 +0000)
commit7f370553220589fe2f344680f235b81b286b8945
tree9794c20bc4790d323f38f01c89fe48801412a40c
parent4cf558bc61069f08e5140b4369986d0bc636ef27
iio: accel: mma8452: define unsigned return values where appropriate

smatch warned:
sval_binop_signed: invalid divide LLONG_MIN/-1

and this fixes it. It's actually good to have, in order to avoid accidental
checking for negative return values here.

Signed-off-by: Martin Kepplinger <martink@posteo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/mma8452.c