From: Masatake YAMATO Date: Fri, 10 Feb 2023 04:38:00 +0000 (+0900) Subject: lsfd: remove redundant parentheses surrounding return values X-Git-Tag: v2.39-rc1~83^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=621cf7e9c981ce54b286b9e8119a6bc5b3f23bbf;p=thirdparty%2Futil-linux.git lsfd: remove redundant parentheses surrounding return values Suggested-by: Thomas Weißschuh Signed-off-by: Masatake YAMATO --- diff --git a/misc-utils/lsfd-sock-xinfo.c b/misc-utils/lsfd-sock-xinfo.c index 7b70d5c9b5..008ae02138 100644 --- a/misc-utils/lsfd-sock-xinfo.c +++ b/misc-utils/lsfd-sock-xinfo.c @@ -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