]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: ni_usb6501: cleanup response_size
authorLuca Ellero <luca.ellero@brickedbrain.com>
Fri, 19 Sep 2014 11:50:36 +0000 (13:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2014 22:58:18 +0000 (15:58 -0700)
Cleanup response_size in ni6501_send_command (READ_PORT command).
No logical/functional change is introduced by this patch.

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>
drivers/staging/comedi/drivers/ni_usb6501.c

index c99b6938460a980843c8787c954a99e1d1017861..91c0e22b0d69bfa88c0068d0560da71b57ac33b0 100644 (file)
@@ -193,8 +193,7 @@ static int ni6501_send_command(struct comedi_device *dev, int command,
        case READ_PORT:
 
                request_size = sizeof(READ_PORT_REQUEST);
-                /* 4 additional bytes for READ_PORT request */
-               response_size = sizeof(GENERIC_RESPONSE) + 4;
+               response_size = sizeof(READ_PORT_RESPONSE);
 
                memcpy(tx, READ_PORT_REQUEST, request_size);