linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chen Lin <chen45464546@163.com>
To: balbi@kernel.org
Cc: gregkh@linuxfoundation.org, gustavoars@kernel.org,
	martin.petersen@oracle.com, bvanassche@acm.org,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	Chen Lin <chen45464546@163.com>, Chen Lin <chen.lin5@zte.com.cn>
Subject: [PATCH] usb: gadget: storage: Remove unused function pointer typedef fsg_routine_t
Date: Mon, 15 Feb 2021 17:56:07 +0800	[thread overview]
Message-ID: <1613382967-2850-1-git-send-email-chen45464546@163.com> (raw)

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



             reply	other threads:[~2021-02-15 12:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-15  9:56 Chen Lin [this message]
2021-02-15 10:15 [PATCH] usb: gadget: storage: Remove unused function pointer typedef fsg_routine_t Chen Lin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1613382967-2850-1-git-send-email-chen45464546@163.com \
    --to=chen45464546@163.com \
    --cc=balbi@kernel.org \
    --cc=bvanassche@acm.org \
    --cc=chen.lin5@zte.com.cn \
    --cc=gregkh@linuxfoundation.org \
    --cc=gustavoars@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).