Skip to content

Commit

Permalink
lslocks: remove a unused local variable
Browse files Browse the repository at this point in the history
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed Apr 12, 2024
1 parent 20df923 commit c8c85e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions misc-utils/lslocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,12 +490,11 @@ static int get_pid_locks(void *locks, void (*add_lock)(void *, struct lock *), s
return rc;
}

static int get_pids_locks(void *locks, void (*add_lock)(void *, struct lock *))
static void get_pids_locks(void *locks, void (*add_lock)(void *, struct lock *))
{
DIR *dir;
struct dirent *d;
struct path_cxt *pc = NULL;
int rc = 0;

pc = ul_new_path(NULL);
if (!pc)
Expand Down Expand Up @@ -526,7 +525,7 @@ static int get_pids_locks(void *locks, void (*add_lock)(void *, struct lock *))
closedir(dir);
ul_unref_path(pc);

return rc;
return;
}

static int get_proc_locks(void *locks, void (*add_lock)(void *, struct lock *), void *fallback)
Expand Down

0 comments on commit c8c85e8

Please sign in to comment.