From 88367bd588892665d9b670358b5de21dca530cb0 Mon Sep 17 00:00:00 2001 From: Luca Ellero Date: Fri, 19 Sep 2014 13:50:36 +0200 Subject: [PATCH] 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 Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_usb6501.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_usb6501.c b/drivers/staging/comedi/drivers/ni_usb6501.c index c99b6938460a..91c0e22b0d69 100644 --- a/drivers/staging/comedi/drivers/ni_usb6501.c +++ b/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: 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); -- 2.39.5