* [PATCH] usb: gadget: storage: Remove unused function pointer typedef fsg_routine_t
@ 2021-02-15 9:56 Chen Lin
0 siblings, 0 replies; 2+ messages in thread
From: Chen Lin @ 2021-02-15 9:56 UTC (permalink / raw)
To: balbi
Cc: gregkh, gustavoars, martin.petersen, bvanassche, linux-usb,
linux-kernel, Chen Lin, Chen Lin
Remove the 'fsg_routine_t' typedef as it is not used.
Signed-off-by: Chen Lin <chen.lin5@zte.com.cn>
---
drivers/usb/gadget/function/f_mass_storage.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/usb/gadget/function/f_mass_storage.c b/drivers/usb/gadget/function/f_mass_storage.c
index 950c943..4a47036 100644
--- a/drivers/usb/gadget/function/f_mass_storage.c
+++ b/drivers/usb/gadget/function/f_mass_storage.c
@@ -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;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] usb: gadget: storage: Remove unused function pointer typedef fsg_routine_t
@ 2021-02-15 10:15 Chen Lin
0 siblings, 0 replies; 2+ messages in thread
From: Chen Lin @ 2021-02-15 10:15 UTC (permalink / raw)
To: balbi
Cc: gregkh, gustavoars, martin.petersen, bvanassche, linux-usb,
linux-kernel, Chen Lin
From: Chen Lin <chen.lin5@zte.com.cn>
Remove the 'fsg_routine_t' typedef as it is not used.
Signed-off-by: Chen Lin <chen.lin5@zte.com.cn>
---
drivers/usb/gadget/function/f_mass_storage.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/usb/gadget/function/f_mass_storage.c b/drivers/usb/gadget/function/f_mass_storage.c
index 950c943..4a47036 100644
--- a/drivers/usb/gadget/function/f_mass_storage.c
+++ b/drivers/usb/gadget/function/f_mass_storage.c
@@ -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;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-15 14:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15 9:56 [PATCH] usb: gadget: storage: Remove unused function pointer typedef fsg_routine_t Chen Lin
2021-02-15 10:15 Chen Lin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.