netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Add missing braces in bnx2x:bnx2x_link_initialize
@ 2013-09-05  3:46 Dave Jones
  2013-09-05 18:21 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Jones @ 2013-09-05  3:46 UTC (permalink / raw)
  To: netdev; +Cc: eilong

The indentation here implies that the intent was for this to be a multiline if.
Introduced a few years ago in commit ec146a6f019923819f5ca381980248b6d154ca1a ("bnx2x: Modify XGXS functions")

Signed-off-by: Dave Jones <davej@fedoraproject.org>

diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
index 9d64b98..6645684 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
@@ -6501,12 +6501,13 @@ static int bnx2x_link_initialize(struct link_params *params,
 		struct bnx2x_phy *phy = &params->phy[INT_PHY];
 		if (vars->line_speed == SPEED_AUTO_NEG &&
 		    (CHIP_IS_E1x(bp) ||
-		     CHIP_IS_E2(bp)))
+		     CHIP_IS_E2(bp))) {
 			bnx2x_set_parallel_detection(phy, params);
 			if (params->phy[INT_PHY].config_init)
 				params->phy[INT_PHY].config_init(phy,
 								 params,
 								 vars);
+		}
 	}
 
 	/* Init external phy*/

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: Add missing braces in bnx2x:bnx2x_link_initialize
  2013-09-05  3:46 Add missing braces in bnx2x:bnx2x_link_initialize Dave Jones
@ 2013-09-05 18:21 ` David Miller
  2013-09-05 18:27   ` Dave Jones
  0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2013-09-05 18:21 UTC (permalink / raw)
  To: davej; +Cc: netdev, eilong


David, I'm going to apply your missing braces patches, but I'm really irritated
that I've told you at least 5 times to put proper subsystem prefixes into
your subject lines.

For this I'd use "bnx2x: ", for the TCP patch I'd use "tcp: " and for the
CAIF change I'd use "caif: "

Please get into the habit of doing this, or I'm going to push back on you
to correct this instead of fixing it up automatically for you every time,
since the latter really is not scalable.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Add missing braces in bnx2x:bnx2x_link_initialize
  2013-09-05 18:21 ` David Miller
@ 2013-09-05 18:27   ` Dave Jones
  0 siblings, 0 replies; 3+ messages in thread
From: Dave Jones @ 2013-09-05 18:27 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, eilong

On Thu, Sep 05, 2013 at 02:21:17PM -0400, David Miller wrote:
 > 
 > David, I'm going to apply your missing braces patches, but I'm really irritated
 > that I've told you at least 5 times to put proper subsystem prefixes into
 > your subject lines.
 > 
 > For this I'd use "bnx2x: ", for the TCP patch I'd use "tcp: " and for the
 > CAIF change I'd use "caif: "

I knew I'd forget something..

 > Please get into the habit of doing this, or I'm going to push back on you
 > to correct this instead of fixing it up automatically for you every time,
 > since the latter really is not scalable.

Sure thing.

thanks,

	Dave

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-05 18:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-05  3:46 Add missing braces in bnx2x:bnx2x_link_initialize Dave Jones
2013-09-05 18:21 ` David Miller
2013-09-05 18:27   ` Dave Jones

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).