diff options
author | Bin Liu <b-liu@ti.com> | 2018-05-21 15:42:22 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-22 12:03:25 +0200 |
commit | ddf12f04dc5b284133662f81a9c4c46a72d3c6ba (patch) | |
tree | f36b40c1347642090af3d7137c5673134e98e8a3 /drivers/usb/gadget/function/f_midi.c | |
parent | usb: musb: gadget: fix to_musb_request() to not return NULL (diff) | |
download | linux-ddf12f04dc5b284133662f81a9c4c46a72d3c6ba.tar.xz linux-ddf12f04dc5b284133662f81a9c4c46a72d3c6ba.zip |
usb: musb: gadget: fix to_musb_ep() to not return NULL
UDC core ensures the usb_ep parameter passed in is not NULL, so
checking if (ep != NULL) is pointless.
Convert to_musb_ep() to a simple macro to not directly return NULL to
avoid warnings from code static analysis tools.
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/function/f_midi.c')
0 files changed, 0 insertions, 0 deletions