From: Pairman Guo <pairmanxlr@gmail.com>
To: valentina.manea.m@gmail.com, shuah@kernel.org
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
Pairman Guo <pairmanxlr@gmail.com>
Subject: [PATCH] USBIP: Use fallthrough pseudo-keyword
Date: Thu, 15 Feb 2024 17:26:30 +0800 [thread overview]
Message-ID: <20240215092630.148917-1-pairmanxlr@gmail.com> (raw)
Hi maintainers,
There is a usage of ``/* FALLTHRU */`` in a switch statement in main()
that have long been untouched. This patch replaced it with the
better and proper pseudo-keyword ``fallthrough;``.
Please merge if it is the case. Thank you in advance.
Signed-off-by: Pairman Guo <pairmanxlr@gmail.com>
---
tools/usb/usbip/src/usbip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/usb/usbip/src/usbip.c b/tools/usb/usbip/src/usbip.c
index f7c7220d9..ddcafb5c7 100644
--- a/tools/usb/usbip/src/usbip.c
+++ b/tools/usb/usbip/src/usbip.c
@@ -165,7 +165,7 @@ int main(int argc, char *argv[])
case '?':
printf("usbip: invalid option\n");
/* Terminate after printing error */
- /* FALLTHRU */
+ fallthrough;
default:
usbip_usage();
goto out;
--
2.43.1
next reply other threads:[~2024-02-15 9:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-15 9:26 Pairman Guo [this message]
2024-02-15 10:14 ` [PATCH] USBIP: Use fallthrough pseudo-keyword Greg KH
2024-02-16 7:55 ` Pairman Guo
-- strict thread matches above, loose matches on Subject: below --
2020-07-07 19:52 [PATCH] usbip: " Gustavo A. R. Silva
2020-07-07 20:06 ` Shuah Khan
2020-07-08 1:56 ` Joe Perches
2020-07-08 10:16 ` Julia Lawall
2020-07-08 14:42 ` Shuah Khan
2020-07-08 14:35 ` Shuah Khan
2020-07-08 15:39 ` Joe Perches
2020-07-08 16:39 ` Shuah Khan
2020-07-08 18:11 ` Gustavo A. R. Silva
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=20240215092630.148917-1-pairmanxlr@gmail.com \
--to=pairmanxlr@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=shuah@kernel.org \
--cc=valentina.manea.m@gmail.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).