]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: rockchip: remove duplicate assignement.
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 18 Mar 2018 12:17:37 +0000 (13:17 +0100)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Wed, 28 Mar 2018 21:30:31 +0000 (23:30 +0200)
Assigning f_rkusb->reboot_flag twice doesn't make sense.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/usb/gadget/f_rockusb.c

index d5a10f19042730d6fb60cb4b16a76beeb3b128cb..ad3ae91e6de4db6073306ac788c84c2ce476b521 100644 (file)
@@ -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;