Browse Source

staging: comedi: ni_usb6501: cleanup response_size

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>
Luca Ellero 11 years ago
parent
commit
88367bd588
1 changed files with 1 additions and 2 deletions
  1. 1 2
      drivers/staging/comedi/drivers/ni_usb6501.c

+ 1 - 2
drivers/staging/comedi/drivers/ni_usb6501.c

@@ -193,8 +193,7 @@ static int ni6501_send_command(struct comedi_device *dev, int command,
 	case READ_PORT:
 	case READ_PORT:
 
 
 		request_size = sizeof(READ_PORT_REQUEST);
 		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);
 		memcpy(tx, READ_PORT_REQUEST, request_size);