diff --git a/drivers/usb/gadget/function/f_accessory.c b/drivers/usb/gadget/function/f_accessory.c index 07b6dd0983f9..51222135ce02 100644 --- a/drivers/usb/gadget/function/f_accessory.c +++ b/drivers/usb/gadget/function/f_accessory.c @@ -661,9 +661,8 @@ static ssize_t acc_read(struct file *fp, char __user *buf, { struct acc_dev *dev = fp->private_data; struct usb_request *req; - ssize_t r = count; + ssize_t r = count, xfer; ssize_t data_length; - unsigned xfer; int ret = 0; pr_debug("acc_read(%zu)\n", count);