* [PATCH] fm10k: Fix missing braces after if statement
@ 2015-06-04 1:53 Alexander Duyck
2015-06-04 6:57 ` David Miller
2015-06-04 23:28 ` [Intel-wired-lan] " Keller, Jacob E
0 siblings, 2 replies; 4+ messages in thread
From: Alexander Duyck @ 2015-06-04 1:53 UTC (permalink / raw)
To: davem, jeffrey.t.kirsher; +Cc: netdev, intel-wired-lan
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>
---
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
index 4b9d9f88af70..a9670e00cf03 100644
--- a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
+++ b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
@@ -143,12 +143,13 @@ static void fm10k_get_strings(struct net_device *dev, u32 stringset, u8 *data)
p += ETH_GSTRING_LEN;
}
- if (interface->hw.mac.type != fm10k_mac_vf)
+ if (interface->hw.mac.type != fm10k_mac_vf) {
for (i = 0; i < FM10K_PF_STATS_LEN; i++) {
memcpy(p, fm10k_gstrings_pf_stats[i].stat_string,
ETH_GSTRING_LEN);
p += ETH_GSTRING_LEN;
}
+ }
for (i = 0; i < interface->hw.mac.max_queues; i++) {
sprintf(p, "tx_queue_%u_packets", i);
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] fm10k: Fix missing braces after if statement
2015-06-04 1:53 [PATCH] fm10k: Fix missing braces after if statement Alexander Duyck
@ 2015-06-04 6:57 ` David Miller
2015-06-04 12:37 ` Jeff Kirsher
2015-06-04 23:28 ` [Intel-wired-lan] " Keller, Jacob E
1 sibling, 1 reply; 4+ messages in thread
From: David Miller @ 2015-06-04 6:57 UTC (permalink / raw)
To: alexander.h.duyck; +Cc: jeffrey.t.kirsher, netdev, intel-wired-lan
From: Alexander Duyck <alexander.h.duyck@redhat.com>
Date: Wed, 03 Jun 2015 18:53:17 -0700
> 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>
I assume that I will get this via Jeff.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] fm10k: Fix missing braces after if statement
2015-06-04 6:57 ` David Miller
@ 2015-06-04 12:37 ` Jeff Kirsher
0 siblings, 0 replies; 4+ messages in thread
From: Jeff Kirsher @ 2015-06-04 12:37 UTC (permalink / raw)
To: David Miller; +Cc: alexander.h.duyck, netdev, intel-wired-lan
[-- Attachment #1: Type: text/plain, Size: 536 bytes --]
On Wed, 2015-06-03 at 23:57 -0700, David Miller wrote:
> From: Alexander Duyck <alexander.h.duyck@redhat.com>
> Date: Wed, 03 Jun 2015 18:53:17 -0700
>
> > 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>
>
> I assume that I will get this via Jeff.
Yeah, I have this queued up.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Intel-wired-lan] [PATCH] fm10k: Fix missing braces after if statement
2015-06-04 1:53 [PATCH] fm10k: Fix missing braces after if statement Alexander Duyck
2015-06-04 6:57 ` David Miller
@ 2015-06-04 23:28 ` Keller, Jacob E
1 sibling, 0 replies; 4+ messages in thread
From: Keller, Jacob E @ 2015-06-04 23:28 UTC (permalink / raw)
To: alexander.h.duyck@redhat.com
Cc: davem@davemloft.net, Kirsher, Jeffrey T,
intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org
Acked-by: Jacob Keller <jacob.e.keller@intel.com>
Thanks Alex.
Regards,
Jake
On Wed, 2015-06-03 at 18:53 -0700, Alexander Duyck wrote:
> 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>
> ---
> drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
> index 4b9d9f88af70..a9670e00cf03 100644
> --- a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
> +++ b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
> @@ -143,12 +143,13 @@ static void fm10k_get_strings(struct net_device *dev, u32 stringset, u8 *data)
> p += ETH_GSTRING_LEN;
> }
>
> - if (interface->hw.mac.type != fm10k_mac_vf)
> + if (interface->hw.mac.type != fm10k_mac_vf) {
> for (i = 0; i < FM10K_PF_STATS_LEN; i++) {
> memcpy(p, fm10k_gstrings_pf_stats[i].stat_string,
> ETH_GSTRING_LEN);
> p += ETH_GSTRING_LEN;
> }
> + }
>
> for (i = 0; i < interface->hw.mac.max_queues; i++) {
> sprintf(p, "tx_queue_%u_packets", i);
>
> _______________________________________________
> Intel-wired-lan mailing list
> Intel-wired-lan@lists.osuosl.org
> http://lists.osuosl.org/mailman/listinfo/intel-wired-lan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-04 23:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-04 1:53 [PATCH] fm10k: Fix missing braces after if statement Alexander Duyck
2015-06-04 6:57 ` David Miller
2015-06-04 12:37 ` Jeff Kirsher
2015-06-04 23:28 ` [Intel-wired-lan] " Keller, Jacob E
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).