diff options
author | Guillem Jover <guillem@debian.org> | 2018-06-05 05:26:41 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2018-08-01 05:33:44 +0200 |
commit | 3b48f9c2d07ef829bb1727e622b14bca4883d61b (patch) | |
tree | 74b7f87dda800b8ec3d7c1eac18905ff33efb1fa | |
parent | 9cc48e639eba62c41beb3b137b9cf8704dfc89ca (diff) | |
download | dpkg-3b48f9c2d07ef829bb1727e622b14bca4883d61b.tar.gz |
dpkg-statoverride: Remove redundant check
The condition is checking for the same multiple times.
Warned-by: cppcheck
-rw-r--r-- | src/statcmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/statcmd.c b/src/statcmd.c index 7cd2d3056..af8a2f756 100644 --- a/src/statcmd.c +++ b/src/statcmd.c @@ -150,7 +150,7 @@ statdb_node_remove(const char *filename) struct filenamenode *file; file = findnamenode(filename, fnn_nonew); - if (!file || (file && !file->statoverride)) + if (!file || !file->statoverride) return 0; file->statoverride = NULL; |