diff options
| author | Lee Jones <[email protected]> | 2020-07-02 15:46:05 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-07-03 10:20:11 +0200 |
| commit | 768a0741284315d3a454f5f4e2fa88f62b5abfe9 (patch) | |
| tree | ea45813ae873b83559e5671026086730b9364661 /scripts/stackusage | |
| parent | 8c4a09cb1bfb84eb4acc88eb5eb5709b76403f9e (diff) | |
usb: dwc2: gadget: Remove assigned but never used 'maxsize'
The value of 'maxsize' has not been checked since commit 729cac693eecf
("usb: dwc2: Change ISOC DDMA flow") back in 2018, so remove the set but
unused variable, which fixes the following W=1 kernel build warning:
drivers/usb/dwc2/gadget.c: In function ‘dwc2_gadget_fill_isoc_desc’:
drivers/usb/dwc2/gadget.c:885:6: warning: variable ‘maxsize’ set but not used [-Wunused-but-set-variable]
885 | u32 maxsize = 0;
| ^~~~~~~
Cc: Minas Harutyunyan <[email protected]>
Cc: Ben Dooks <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions