[U-Boot] [PATCH 1/1] usb: rockchip: remove duplicate assignement.

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Mar 18 12:17:37 UTC 2018


Assigning f_rkusb->reboot_flag twice doesn't make sense.

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 drivers/usb/gadget/f_rockusb.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/usb/gadget/f_rockusb.c b/drivers/usb/gadget/f_rockusb.c
index d5a10f1904..ad3ae91e6d 100644
--- a/drivers/usb/gadget/f_rockusb.c
+++ b/drivers/usb/gadget/f_rockusb.c
@@ -552,7 +552,6 @@ static void cb_reboot(struct usb_ep *ep, struct usb_request *req)
 				 sizeof(struct fsg_bulk_cb_wrap));
 	struct f_rockusb *f_rkusb = get_rkusb();
 
-	f_rkusb->reboot_flag = 0;
 	memcpy((char *)cbw, req->buf, USB_BULK_CB_WRAP_LEN);
 	f_rkusb->reboot_flag = cbw->CDB[1];
 	rockusb_func->in_req->complete = compl_do_reset;
-- 
2.16.2



More information about the U-Boot mailing list