From: Luca Ellero Date: Fri, 19 Sep 2014 11:50:36 +0000 (+0200) Subject: staging: comedi: ni_usb6501: cleanup response_size X-Git-Tag: v5.15~17125^2~415 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88367bd588892665d9b670358b5de21dca530cb0;p=platform%2Fkernel%2Flinux-starfive.git 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 --- diff --git a/drivers/staging/comedi/drivers/ni_usb6501.c b/drivers/staging/comedi/drivers/ni_usb6501.c index c99b693..91c0e22 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);