From: Eric Dumazet <eric.dumazet@gmail.com>
To: eilong@broadcom.com
Cc: David Miller <davem@davemloft.net>,
netdev <netdev@vger.kernel.org>, Dave Jones <davej@redhat.com>
Subject: Re: [PATCH net] bnx2x: Restore a call to config_init
Date: Fri, 06 Sep 2013 06:08:29 -0700 [thread overview]
Message-ID: <1378472909.31445.22.camel@edumazet-glaptop> (raw)
In-Reply-To: <1378461302.15758.2.camel@lb-tlvb-eilong.il.broadcom.com>
On Fri, 2013-09-06 at 12:55 +0300, Eilon Greenstein wrote:
> Commit c0a77ec74f295013d7ba3204dd3ed25fccf83cb4 'bnx2x: Add missing braces in
> bnx2x:bnx2x_link_initialize' identified indentation problem, but resolved it
> by adding braces instead of fixing the indentation. The braces now prevents a
> config_init call in some cases, though it should be called regardless of that
> condition. This patch removes the braces and fix the confusing indentation
> that caused this mess.
>
> Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
> CC: Dave Jones <davej@redhat.com>
> ---
> drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c | 9 +++------
> 1 file changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
> index 6645684..d60a2ea 100644
> --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
> +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
> @@ -6501,13 +6501,10 @@ static int bnx2x_link_initialize(struct link_params *params,
> struct bnx2x_phy *phy = ¶ms->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);
> - }
> + if (params->phy[INT_PHY].config_init)
> + params->phy[INT_PHY].config_init(phy, params, vars);
> }
>
> /* Init external phy*/
Thanks
I wish people, including Dave Jones, clearly states that a patch was not
actually tested on real hardware.
Tested-by: Eric Dumazet <edumazet@google.com>
next prev parent reply other threads:[~2013-09-06 13:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-06 9:55 [PATCH net] bnx2x: Restore a call to config_init Eilon Greenstein
2013-09-06 13:08 ` Eric Dumazet [this message]
2013-09-06 18:47 ` David Miller
2013-09-06 22:39 ` Eric Dumazet
2013-09-07 10:35 ` Dmitry Kravkov
2013-09-07 14:43 ` Eric Dumazet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1378472909.31445.22.camel@edumazet-glaptop \
--to=eric.dumazet@gmail.com \
--cc=davej@redhat.com \
--cc=davem@davemloft.net \
--cc=eilong@broadcom.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox