OSDN Git Service

iio: magnetometer: correct a harmless off by one check
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 27 May 2015 08:20:52 +0000 (11:20 +0300)
committerJonathan Cameron <jic23@kernel.org>
Mon, 1 Jun 2015 15:55:19 +0000 (16:55 +0100)
commit5517547bf44731621338c1a4047196a49c790719
tree51e0b50fa205cc2623a530a2e40521223a78aa16
parent1e1ec2861e0d4307267096c3f74c17298c1cde98
iio: magnetometer: correct a harmless off by one check

The line before limits i to 0-3 so the existing code works fine but the
check is still off by one and >= is intended instead of >.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/mmc35240.c