staging: comedi: ni_labpc: simplify labpc_range_is_unipolar()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Mar 2013 17:26:38 +0000 (10:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Mar 2013 23:14:51 +0000 (16:14 -0700)
commit43d092c67740704c9a8d04da2ca070bfca34207a
treec0f44ef22d70e56357719cd434c8ca3f4576e84d
parente7a1aa62823d8cc861aaad078006e6742c114a0e
staging: comedi: ni_labpc: simplify labpc_range_is_unipolar()

As Ian Abbott pointed out, this helper function can be simplified
by just checking if the 'min' value is >= 0.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_labpc.c