[PATCH] usb: gadget: dummy_hcd: remove superfluous setting HC_STATE_RUNNING in dummy_start()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



After commit 4814030ce11f08350b7, the core now sets
hcd->state = HC_STATE_RUNNING in usb_add_hcd() before
the driver's start() method is called.

So, we can safely remove this line from dummy_start()
since it is now superfluous.

Signed-off-by: Pantelis Koukousoulas <pktoss@xxxxxxxxx>
---
 drivers/usb/gadget/dummy_hcd.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c
index ffd5af0..3a2e649 100644
--- a/drivers/usb/gadget/dummy_hcd.c
+++ b/drivers/usb/gadget/dummy_hcd.c
@@ -2345,7 +2345,6 @@ static int dummy_start(struct usb_hcd *hcd)
 	INIT_LIST_HEAD(&dum_hcd->urbp_list);
 
 	hcd->power_budget = POWER_BUDGET;
-	hcd->state = HC_STATE_RUNNING;
 	hcd->uses_new_polling = 1;
 
 #ifdef CONFIG_USB_OTG
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux