diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-09-08 23:46:23 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-09-08 23:46:23 +0200 |
commit | f5046759cdd72daf5ba3b31c9dfc7b8d5be6bc9b (patch) | |
tree | b179f9d8d43310bfb8ef85a60d096d1d7ff98760 /src/pulsecore/pid.c | |
parent | b2606cf641f01f688dcb05abcfef3ba003e74efb (diff) |
llvm-clang-analyzer: drop a few unnecessary assignments and other trivial fixes
Diffstat (limited to 'src/pulsecore/pid.c')
-rw-r--r-- | src/pulsecore/pid.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pulsecore/pid.c b/src/pulsecore/pid.c index 00878462..996946c2 100644 --- a/src/pulsecore/pid.c +++ b/src/pulsecore/pid.c @@ -81,7 +81,7 @@ static pid_t read_pid(const char *fn, int fd) { } static int open_pid_file(const char *fn, int mode) { - int fd = -1; + int fd; pa_assert(fn); @@ -123,8 +123,6 @@ static int open_pid_file(const char *fn, int mode) { fd = -1; goto fail; } - - fd = -1; } return fd; |