From: H Hartley Sweeten Date: Mon, 24 Sep 2012 20:50:48 +0000 (-0700) Subject: staging: comedi: s526: fix if() check in s526_gpct_winsn() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67f2021fb1519057b0643d871b2afcd583bcc40d;p=pandora-kernel.git staging: comedi: s526: fix if() check in s526_gpct_winsn() This if() check was flipped from a test for valid data params to a test for invalid params. As pointed out by Dan Carpenter, the orignal test was: if ((data[1] > data[0]) && (data[0] > 0)) { the flipped test should be: if (data[1] <= data[0]) ... Add the missing '='. Signed-off-by: H Hartley Sweeten Reported-by: Dan Carpenter Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed