]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net/mlx5e: Fix wrong code indentation in conditional statement
authorGal Pressman <galp@mellanox.com>
Tue, 22 Aug 2017 11:22:15 +0000 (14:22 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 24 Aug 2017 13:02:58 +0000 (16:02 +0300)
Fix the following checkpatch warning in en_ethtool.c:
WARNING: suspect code indent for conditional statements (8, 9)
+ for (i = 0; i < NUM_PCIE_PERF_STALL_COUNTERS(priv); i++)
+  strcpy(data + (idx++) * ETH_GSTRING_LEN,

Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c

index c30cf6b4736fe4a2f183b6ebc40e9d7c9024bd75..0dd7e9caf1509f676340c6589dc5a2405f3bf3e2 100644 (file)
@@ -254,8 +254,8 @@ static void mlx5e_fill_stats_strings(struct mlx5e_priv *priv, u8 *data)
                       pcie_perf_stats_desc64[i].format);
 
        for (i = 0; i < NUM_PCIE_PERF_STALL_COUNTERS(priv); i++)
-        strcpy(data + (idx++) * ETH_GSTRING_LEN,
-               pcie_perf_stall_stats_desc[i].format);
+               strcpy(data + (idx++) * ETH_GSTRING_LEN,
+                      pcie_perf_stall_stats_desc[i].format);
 
        for (prio = 0; prio < NUM_PPORT_PRIO; prio++) {
                for (i = 0; i < NUM_PPORT_PER_PRIO_TRAFFIC_COUNTERS; i++)