From 3b48f9c2d07ef829bb1727e622b14bca4883d61b Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 5 Jun 2018 05:26:41 +0200 Subject: 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; -- cgit v1.2.3