Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fm10k: Fix missing braces after if statement

While reviewing the code I noticed that one of the commits added an if
statement followed by a for loop, but the if statement was missing the
braces around the loop. This change corrects the coding style error.

Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Acked-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

authored by

Alexander Duyck and committed by
Jeff Kirsher
986eec43 ee4373e7

+2 -1
+2 -1
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
··· 143 143 p += ETH_GSTRING_LEN; 144 144 } 145 145 146 - if (interface->hw.mac.type != fm10k_mac_vf) 146 + if (interface->hw.mac.type != fm10k_mac_vf) { 147 147 for (i = 0; i < FM10K_PF_STATS_LEN; i++) { 148 148 memcpy(p, fm10k_gstrings_pf_stats[i].stat_string, 149 149 ETH_GSTRING_LEN); 150 150 p += ETH_GSTRING_LEN; 151 151 } 152 + } 152 153 153 154 for (i = 0; i < interface->hw.mac.max_queues; i++) { 154 155 sprintf(p, "tx_queue_%u_packets", i);