From 23259e2fd465fe9e39c5e32cc88a6e681065ae9f Mon Sep 17 00:00:00 2001 From: LuchianMihai Date: Tue, 27 Aug 2024 10:18:08 +0300 Subject: [PATCH] fix: code style fix --- tools/nxstyle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index 0ba30e5db2344..30947c12eaac0 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -3114,10 +3114,10 @@ int main(int argc, char **argv, char **envp) if (m > 1 && isspace((int)line[m - 1]) && line[m - 1] != '\n' && line[m - 1] != '\r') { - /* Report warning on if statement only is pnest is 0 * This takes into consideration the multiline if statement. */ + if (bif == true && pnest == 0) { WARN("If statement followed by garbage", lineno, n);