staging: comedi: remove 'bi.subdevice < 0' check in do_bufinfo_ioctl()
authorGüngör Erseymen <gelurine@gmail.com>
Fri, 7 Jun 2013 18:29:50 +0000 (21:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Jun 2013 05:14:27 +0000 (22:14 -0700)
commit7b1a5e2f4f5afde4f1dadf58223c2f293208293b
treedb3d6c2d85702dae0c3c4aa8e8c4f311767900f1
parent11f80ddfd51f802575dc8b00ca59156d8e6a3e6e
staging: comedi: remove 'bi.subdevice < 0' check in do_bufinfo_ioctl()

Type of variable 'bi' is struct comedi_bufinfo and 'subdevice' is
defined as unsigned, so there is no need to check if it is less then
zero.

Signed-off-by: Güngör Erseymen <gelurine@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c