Message ID | 20210217210124.197780-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 8798fe2ac0677325347196f9cfe6d39e7c6bffd6 |
Headers | show |
Series | USB: gadget: dummy-hcd: remove redundant initialization of variable 'value' | expand |
diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc/dummy_hcd.c index 57067763b100..ce24d4f28f2a 100644 --- a/drivers/usb/gadget/udc/dummy_hcd.c +++ b/drivers/usb/gadget/udc/dummy_hcd.c @@ -1866,7 +1866,7 @@ static void dummy_timer(struct timer_list *t) /* handle control requests */ if (ep == &dum->ep[0] && ep->setup_stage) { struct usb_ctrlrequest setup; - int value = 1; + int value; setup = *(struct usb_ctrlrequest *) urb->setup_packet; /* paranoia, in case of stale queued data */