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

Type of variable 'bc' is struct comedi_bufconfig 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