]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: usbdux: remove impossible 'if (!devpriv)' check
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 14 Aug 2015 22:23:30 +0000 (15:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:17 +0000 (18:24 -0700)
commit2779b7e51497b5d0855dc7d21d793998acd2ad5f
tree2bf90bac1ec399d2f064c7948cdc6ed53f85b691
parent1e4c3a2e7da0f7e40f79ba1e219ccbe1d8a79f56
staging: comedi: usbdux: remove impossible 'if (!devpriv)' check

The comedi core can only call this subdevice function is the private
data was successfully allocated during the (*auto_attach). Remove
the unnecessary check.

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