Commit 3f79265c authored by Felipe Balbi's avatar Felipe Balbi

usb: gadget: tcm_usb_gadget: mark bot_cleanup_old_alt static

that symbol is only used inside this function driver,
we should mark it static. Fixes sparse's:

drivers/usb/gadget/tcm_usb_gadget.c:373:6: warning: symbol \
	'bot_cleanup_old_alt' was not declared. Should it \
	be static?
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 63b12e3e
...@@ -370,7 +370,7 @@ static int bot_prepare_reqs(struct f_uas *fu) ...@@ -370,7 +370,7 @@ static int bot_prepare_reqs(struct f_uas *fu)
return -ENOMEM; return -ENOMEM;
} }
void bot_cleanup_old_alt(struct f_uas *fu) static void bot_cleanup_old_alt(struct f_uas *fu)
{ {
if (!(fu->flags & USBG_ENABLED)) if (!(fu->flags & USBG_ENABLED))
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment