cxgb4: Fix the -Wmisleading-indentation warning
authorKaixu Xia <kaixuxia@tencent.com>
Wed, 4 Nov 2020 05:24:04 +0000 (13:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 May 2021 08:40:33 +0000 (10:40 +0200)
commit ea8146c6845799142aa4ee2660741c215e340cdf upstream.

Fix the gcc warning:

drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c:2673:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 2673 |         for (i = 0; i < n; ++i) \

Reported-by: Tosk Robot <tencent_os_robot@tencent.com>
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Link: https://lore.kernel.org/r/1604467444-23043-1-git-send-email-kaixuxia@tencent.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c

index c150521647172132200fd699d60e0bc5c05e45fd..becfb54421cc2ef74a672a584aa7bbeb79e9a237 100644 (file)
@@ -2446,7 +2446,7 @@ do { \
        seq_printf(seq, "%-12s", s); \
        for (i = 0; i < n; ++i) \
                seq_printf(seq, " %16" fmt_spec, v); \
-               seq_putc(seq, '\n'); \
+       seq_putc(seq, '\n'); \
 } while (0)
 #define S(s, v) S3("s", s, v)
 #define T3(fmt_spec, s, v) S3(fmt_spec, s, tx[i].v)