From: Dan Carpenter Date: Wed, 27 May 2015 08:20:52 +0000 (+0300) Subject: iio: magnetometer: correct a harmless off by one check X-Git-Tag: omap-for-v4.3/legacy-v2-signed~121^2~256^2~16 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5517547bf44731621338c1a4047196a49c790719;p=pandora-kernel.git 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 Reviewed-by: Daniel Baluta Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed