]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: dwc3: gadget: remove redundant variable maxpacket
authorColin Ian King <colin.king@canonical.com>
Fri, 13 Jul 2018 09:24:33 +0000 (10:24 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 17 Jul 2018 07:12:51 +0000 (10:12 +0300)
commit9566a7c72f4f09b094c5517556d2b5f36a11b4ef
tree5be9f21d178da8d6e81f1639a4baab00d04e980a
parent89066b36c43dc9100ad2c86e0b6bf8c81ca0b4d4
usb: dwc3: gadget: remove redundant variable maxpacket

Variable maxpacket is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
warning: variable 'maxpacket' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/ep0.c