Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;