H Hartley Sweeten 67f2021fb1 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 <hsweeten@visionengravers.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-09-26 10:21:43 -07:00
..
2012-09-16 17:17:25 -07:00
2012-09-13 20:20:28 -07:00
2012-07-06 16:08:57 -07:00
2012-09-21 09:17:07 -07:00
2012-09-16 17:17:25 -07:00
2012-09-16 17:17:25 -07:00
2012-07-16 19:24:46 -07:00
2012-09-16 17:17:25 -07:00
2012-09-26 09:19:50 -07:00
2012-09-16 17:17:25 -07:00
2012-07-09 11:35:00 -07:00