From: Jonathan Cameron Date: Sat, 2 May 2015 10:25:48 +0000 (+0100) Subject: iio:light:ltr501 bug in parameter sanity check. X-Git-Tag: omap-for-v4.3/legacy-v2-signed~121^2~761^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fdaf3f4f8c718a5023db69e2d391d978e94703e;p=pandora-kernel.git iio:light:ltr501 bug in parameter sanity check. Clearly the intent was to error if the value was not 0 or 1. As implemented we have (A != 0 || A != 1) which is always true as A is never both 0 and 1 at the same time. As the autobuilder suggested, && makes more sense for this error check. Reported-by: kbuild test robot Acked-by: Kuppuswamy Sathyanarayanan Cc: Daniel Baluta Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed