This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=3b48f9c2d07ef829bb1727e622b14bca4883d61b

commit 3b48f9c2d07ef829bb1727e622b14bca4883d61b
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Jun 5 05:26:41 2018 +0200

    dpkg-statoverride: Remove redundant check
    
    The condition is checking for the same multiple times.
    
    Warned-by: cppcheck
---
 src/statcmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;

-- 
Dpkg.Org's dpkg

Reply via email to