summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-12-07 10:16:43 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-12-07 11:08:33 +0100
commit268122c1d4c00794ed87d696985889ec0f873ed2 (patch)
treea6958dfaa4b54134b0dfc5b1ef69450f1643bab3 /drivers/usb/gadget
parent49f802cc097d7086dab6705f086e575b46e8f3df (diff)
downloadbarebox-268122c1d4c00794ed87d696985889ec0f873ed2.tar.gz
barebox-268122c1d4c00794ed87d696985889ec0f873ed2.tar.xz
usb: gadget: fastboot: remove unnecessary context setting
Instead of setting the context for in_req we have set the context for out_req twice. This didn't trigger an error because we haven't used the context. So instead of fixing it we can equally well just remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/f_fastboot.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index 61cc0b2e62..8b0654dca4 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -397,7 +397,6 @@ static int fastboot_bind(struct usb_configuration *c, struct usb_function *f)
return ret;
}
f_fb->in_req->complete = fastboot_complete;
- f_fb->out_req->context = f_fb;
ret = usb_assign_descriptors(f, fb_fs_descs, fb_hs_descs, NULL);
if (ret)