]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lslocks: (refactor) remove an unused local variable
authorMasatake YAMATO <yamato@redhat.com>
Tue, 9 Dec 2025 22:21:38 +0000 (07:21 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Sun, 21 Dec 2025 19:41:12 +0000 (04:41 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lslocks.c

index a54d28dd83b41bd2c19b5f43f020b164cd1712e6..80c96da3af64fd76582f1fcf7034c310fb295f40 100644 (file)
@@ -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;
 }