]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: dwc3: gadget: use evt->length as we should
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 Nov 2016 11:05:23 +0000 (13:05 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Nov 2016 11:54:43 +0000 (13:54 +0200)
commitcaefe6c7be4778d0bddb38596ced1b60bd522b14
treeec7d5aabf4df1bb4db1cde1cd2997eac06a0eae1
parentd9fa4c63f7662c2e0aa8096250072f244f7737f2
usb: dwc3: gadget: use evt->length as we should

Instead of always accessing the macro directly,
let's rely on evt->length which is the actual length
of current event buffer. While unlikely, we could
change event buffer's size at any time.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c