diff options
author | Stefan Agner <stefan@agner.ch> | 2018-02-12 00:14:42 +0100 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-02-12 10:57:50 +0200 |
commit | 20c63f4089cceab803438c383631963e34c4d8e5 (patch) | |
tree | d191478f81ebeb00195d1be88649a3d45247cb38 /drivers/usb/dwc2/gadget.c | |
parent | 17aa31f13cad25daa19d3f923323f552e87bc874 (diff) |
usb: gadget: fsl_udc_core: fix ep valid checks
Clang reports the following warning:
drivers/usb/gadget/udc/fsl_udc_core.c:1312:10: warning: address of array
'ep->name' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (ep->name)
~~ ~~~~^~~~
It seems that the authors intention was to check if the ep has been
configured through struct_ep_setup. Check whether struct usb_ep name
pointer has been set instead.
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc2/gadget.c')
0 files changed, 0 insertions, 0 deletions