usbutils/0002-lsusb-h-returns-an-error.patch
Hongtao Zhang 6c7009a91b Fix lsusb -h returns an error
(cherry picked from commit d98f7442215204743af54f6450d5947de3b0188b)
2023-06-25 21:52:33 +08:00

30 lines
710 B
Diff

From 882a852d06321968a420fda46aef0c52b8220eae Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: Sun, 25 Jun 2023 09:04:23 +0200
Subject: [PATCH 1/2] lsusb -h returns an error
Fix up the issue where 'lsusb -h' will return an error to the shell, it
succeeded, so return 0 instead.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
lsusb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lsusb.c b/lsusb.c
index 90825c5..1d4c5fd 100644
--- a/lsusb.c
+++ b/lsusb.c
@@ -3797,7 +3797,7 @@ int main(int argc, char *argv[])
" -h, --help\n"
" Show usage and help\n"
);
- return EXIT_FAILURE;
+ return 0;
}
--
2.23.0