summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorLuca Ellero <luca.ellero@brickedbrain.com>2014-09-19 13:50:39 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-19 15:58:18 -0700
commitd6669ba21b3e9b7c26aebbbe671ed77a1d756a70 (patch)
tree57f18df78c3f04f3b5591bd67a07cea68d3f54c7 /drivers/staging
parent78d8135608d35524d17702767167b0d0248f3df7 (diff)
staging: comedi: ni_usb6501: remove empty lines
ni6501_send_command(): remove empty lines in case statements 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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/comedi/drivers/ni_usb6501.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/staging/comedi/drivers/ni_usb6501.c b/drivers/staging/comedi/drivers/ni_usb6501.c
index eea9c680cc4d..7a1d01649b8f 100644
--- a/drivers/staging/comedi/drivers/ni_usb6501.c
+++ b/drivers/staging/comedi/drivers/ni_usb6501.c
@@ -188,41 +188,26 @@ static int ni6501_send_command(struct comedi_device *dev, int command,
switch (command) {
case READ_PORT:
-
request_size = sizeof(READ_PORT_REQUEST);
response_size = sizeof(READ_PORT_RESPONSE);
-
memcpy(tx, READ_PORT_REQUEST, request_size);
-
tx[14] = port[0];
-
break;
-
case WRITE_PORT:
-
request_size = sizeof(WRITE_PORT_REQUEST);
response_size = sizeof(GENERIC_RESPONSE);
-
memcpy(tx, WRITE_PORT_REQUEST, request_size);
-
tx[14] = port[0];
tx[17] = bitmap[0];
-
break;
-
case SET_PORT_DIR:
-
request_size = sizeof(SET_PORT_DIR_REQUEST);
response_size = sizeof(GENERIC_RESPONSE);
-
memcpy(tx, SET_PORT_DIR_REQUEST, request_size);
-
tx[14] = port[0];
tx[15] = port[1];
tx[16] = port[2];
-
break;
-
default:
ret = -EINVAL;
goto end;