[PATCH] usbip: tools: remove duplicate "daemon" entry in longopts

longlong yan <[email protected]>
Newsgroups org.kernel.vger.linux-usb
Message-ID <[email protected]>
The longopts array in main() contains two identical entries for the
"daemon" option. This is a harmless redundancy since getopt_long()
uses the first match, but it is dead code that can confuse readers.

The duplicate was introduced when the long options list was
reformatted for alignment.

Fixes: 92e11aef70fb ("staging: usbip: fix up alignment in long options list")
Signed-off-by: longlong yan <[email protected]>
---
 tools/usb/usbip/src/usbipd.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/usb/usbip/src/usbipd.c b/tools/usb/usbip/src/usbipd.c
index 3e22b651c754..00904508db67 100644
--- a/tools/usb/usbip/src/usbipd.c
+++ b/tools/usb/usbip/src/usbipd.c
@@ -589,7 +589,6 @@ int main(int argc, char *argv[])
 		{ "ipv4",     no_argument,       NULL, '4' },
 		{ "ipv6",     no_argument,       NULL, '6' },
 		{ "daemon",   no_argument,       NULL, 'D' },
-		{ "daemon",   no_argument,       NULL, 'D' },
 		{ "debug",    no_argument,       NULL, 'd' },
 		{ "device",   no_argument,       NULL, 'e' },
 		{ "pid",      optional_argument, NULL, 'P' },
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.