Skip to content

Commit

Permalink
Remove unused assignment to local variable
Browse files Browse the repository at this point in the history
The -1 value assigned to fd variable is not used for anything as fd is
local to the function.
  • Loading branch information
nikobockerman authored and emersion committed Feb 9, 2021
1 parent 47892e1 commit e0bf32c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ static void release_inhibitor_lock(int fd) {
swayidle_log(LOG_DEBUG, "Releasing inhibitor lock %d", fd);
close(fd);
}
fd = -1;
}

static void set_idle_hint(bool hint) {
Expand Down

0 comments on commit e0bf32c

Please sign in to comment.