From: Masatake YAMATO Date: Tue, 9 Dec 2025 22:21:38 +0000 (+0900) Subject: lslocks: (refactor) remove an unused local variable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91675a804e29c48761511d5ce73f5ea0eaa2c5c8;p=thirdparty%2Futil-linux.git lslocks: (refactor) remove an unused local variable Signed-off-by: Masatake YAMATO --- diff --git a/misc-utils/lslocks.c b/misc-utils/lslocks.c index a54d28dd8..80c96da3a 100644 --- a/misc-utils/lslocks.c +++ b/misc-utils/lslocks.c @@ -735,7 +735,6 @@ static int get_json_type_for_column(int column_id, int representing_in_bytes) static int show_locks(struct list_head *locks, pid_t target_pid, void *pid_locks) { - int rc = 0; struct list_head *p; struct libscols_table *table; @@ -786,7 +785,7 @@ static int show_locks(struct list_head *locks, pid_t target_pid, void *pid_locks scols_print_table(table); scols_unref_table(table); - return rc; + return 0; }