]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
usb: gadget: tcm_usb_gadget: mark bot_cleanup_old_alt static
authorFelipe Balbi <balbi@ti.com>
Mon, 25 Nov 2013 17:19:41 +0000 (11:19 -0600)
committerFelipe Balbi <balbi@ti.com>
Mon, 25 Nov 2013 17:19:41 +0000 (11:19 -0600)
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: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/tcm_usb_gadget.c

index 6c3d7950d2a9e56d5231938493127c0964f04221..0f8aad78b54f7095a26b6e413a22ff5ae1e016df 100644 (file)
@@ -370,7 +370,7 @@ err:
        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))
                return;