]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: remove redundant parentheses surrounding return values
authorMasatake YAMATO <yamato@redhat.com>
Fri, 10 Feb 2023 04:38:00 +0000 (13:38 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Fri, 10 Feb 2023 04:43:21 +0000 (13:43 +0900)
Suggested-by: Thomas Weißschuh <thomas@t-8ch.de>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-sock-xinfo.c

index 7b70d5c9b59ea8db859a5072a0a135a1a543f870..008ae021385bc671309994a112b2717b8597ba51 100644 (file)
@@ -202,7 +202,7 @@ struct sock_xinfo *get_sock_xinfo(ino_t netns_inode)
 
 bool is_nsfs_dev(dev_t dev)
 {
-       return (dev == self_netns_sb.st_dev);
+       return dev == self_netns_sb.st_dev;
 }
 
 static const char *sock_decode_type(uint16_t type)
@@ -690,7 +690,7 @@ static bool L4_verify_initial_line(const char *line)
        /* Skip white spaces. */
        line = skip_space(line);
 
-       return (strncmp(line, "sl", 2) == 0);
+       return strncmp(line, "sl", 2) == 0;
 }
 
 #define TCP_LINE_LEN 256