All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] watchdog-test.c: Remove unused variable in main
@ 2025-08-12  7:53 bajing
  2025-08-12 19:27 ` Shuah Khan
  0 siblings, 1 reply; 2+ messages in thread
From: bajing @ 2025-08-12  7:53 UTC (permalink / raw)
  To: shuah; +Cc: lizhijian, linux-kselftest, linux-kernel, bajing

Since $optind is not used in the subsequent code, the variable
should be removed.

Signed-off-by: bajing <bajing@cmss.chinamobile.com>
---
 tools/testing/selftests/watchdog/watchdog-test.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tools/testing/selftests/watchdog/watchdog-test.c b/tools/testing/selftests/watchdog/watchdog-test.c
index a1f506ba5578..837001a9e3a0 100644
--- a/tools/testing/selftests/watchdog/watchdog-test.c
+++ b/tools/testing/selftests/watchdog/watchdog-test.c
@@ -209,8 +209,6 @@ int main(int argc, char *argv[])
 		exit(ret);
 	}
 
-	optind = 0;
-
 	while ((c = getopt_long(argc, argv, sopts, lopts, NULL)) != -1) {
 		switch (c) {
 		case 'b':
-- 
2.33.0




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-08-12 19:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-12  7:53 [PATCH] watchdog-test.c: Remove unused variable in main bajing
2025-08-12 19:27 ` Shuah Khan

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.