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: Luca Ellero <luca.ellero@brickedbrain.com>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Luca Ellero 2014-09-19 13:50:38 +02:00 committed by Greg Kroah-Hartman
parent e9826c0c8a
commit 78d8135608
1 changed files with 0 additions and 3 deletions

View 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;