Commit 78d81356 authored by Luca Ellero's avatar Luca Ellero Committed by Greg Kroah-Hartman

staging: comedi: ni_usb6501: remove useless check

Remove useless test in ni6501_send_command. The check is useless since this
function is called only in this driver.
Signed-off-by: default avatarLuca Ellero <luca.ellero@brickedbrain.com>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e9826c0c
...@@ -181,9 +181,6 @@ static int ni6501_send_command(struct comedi_device *dev, int command, ...@@ -181,9 +181,6 @@ static int ni6501_send_command(struct comedi_device *dev, int command,
u8 *tx = devpriv->usb_tx_buf; u8 *tx = devpriv->usb_tx_buf;
int ret; int ret;
if (!tx || !port)
return -EINVAL;
if (command != SET_PORT_DIR && !bitmap) if (command != SET_PORT_DIR && !bitmap)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment