]> git.openfabrics.org - ~emulex/infiniband.git/commit
staging: comedi: ni_labpc: remove unnecessary test of dev->irq
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 22 Mar 2013 16:47:20 +0000 (09:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 18:42:57 +0000 (11:42 -0700)
commit9718e5dfd7e19a2fb0d98a9afdb0459ba6b5d41f
tree74565dfb505c4da4cdce8e8d55ba8eea78666e04
parentfe7fc72af7df7120e1897fc07a05e247364b3a50
staging: comedi: ni_labpc: remove unnecessary test of dev->irq

The ai subdevice (*do_cmd) pointer is only initialized if the
driver has successfully requested the interrupt. The extra test
in labpc_ai_cmd() is not necessary.

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