usb: gadget: storage: Remove unused function pointer typedef fsg_routine_t
authorChen Lin <chen.lin5@zte.com.cn>
Mon, 15 Feb 2021 10:15:30 +0000 (18:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:37:15 +0000 (09:37 +0100)
Remove the 'fsg_routine_t' typedef as it is not used.

Signed-off-by: Chen Lin <chen.lin5@zte.com.cn>
Link: https://lore.kernel.org/r/1613384130-3028-1-git-send-email-chen45464546@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_mass_storage.c

index 950c9435beec376d7ca81c5e110af83d47ada626..4a4703634a2abf8bd7d88e47b3e689b3a492e39e 100644 (file)
@@ -351,8 +351,6 @@ static inline struct fsg_dev *fsg_from_func(struct usb_function *f)
        return container_of(f, struct fsg_dev, function);
 }
 
-typedef void (*fsg_routine_t)(struct fsg_dev *);
-
 static int exception_in_progress(struct fsg_common *common)
 {
        return common->state > FSG_STATE_NORMAL;