From: Luca Ellero Date: Fri, 19 Sep 2014 11:50:38 +0000 (+0200) Subject: staging: comedi: ni_usb6501: remove useless check X-Git-Tag: Ubuntu-snapdragon-4.4.0-1050.54~9526^2~413 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=78d8135608d35524d17702767167b0d0248f3df7;p=mirror_ubuntu-artful-kernel.git 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 Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_usb6501.c b/drivers/staging/comedi/drivers/ni_usb6501.c index dd89cdc7503f..eea9c680cc4d 100644 --- a/drivers/staging/comedi/drivers/ni_usb6501.c +++ b/drivers/staging/comedi/drivers/ni_usb6501.c @@ -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;