]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
staging: comedi: ni_usb6501: remove useless check
authorLuca Ellero <luca.ellero@brickedbrain.com>
Fri, 19 Sep 2014 11:50:38 +0000 (13:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2014 22:58:18 +0000 (15:58 -0700)
Remove useless test in ni6501_send_command. The check is useless since this
function is called only in this driver.

Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_usb6501.c

index dd89cdc7503f13ea27b429b60de13d5046f21c2c..eea9c680cc4de3e2b08f1bbe77eafd98c7d4c6b1 100644 (file)
@@ -181,9 +181,6 @@ static int ni6501_send_command(struct comedi_device *dev, int command,
        u8 *tx = devpriv->usb_tx_buf;
        int ret;
 
-       if (!tx || !port)
-               return -EINVAL;
-
        if (command != SET_PORT_DIR && !bitmap)
                return -EINVAL;