From b51e77829ea59b1e78bcc6389587cf2f4a804e38 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 31 Oct 2018 12:42:18 -0600 Subject: [PATCH] tools/nxstyle.c: Remove some logic added in previous change. Causes too many false alarms. --- tools/nxstyle.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index 1d39dda9bc..0b55658f1a 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -414,7 +414,13 @@ int main(int argc, char **argv, char **envp) if (--ncomment == 0) { +#if 0 + /* REVISIT: causes false alarms when comment appears to + * the right of a statement. + */ + comment_lineno = lineno; +#endif } } else