From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Florian Fainelli <f.fainelli@gmail.com>, netdev@vger.kernel.org
Cc: davem@davemloft.net
Subject: Re: [net-next v2 1/3] net: bcmgenet: drop checks on priv->phydev
Date: Tue, 25 Feb 2014 20:09:56 +0400 [thread overview]
Message-ID: <530CC054.9020809@cogentembedded.com> (raw)
In-Reply-To: <1393289773-9473-2-git-send-email-f.fainelli@gmail.com>
Hello.
On 25-02-2014 4:56, Florian Fainelli wrote:
> Drop all the checks on priv->phydev since we will refuse probing the
> driver if we cannot attach to a PHY device. Drop all checks on
> priv->phydev. This also fixes some smatch issues reported by Dan
> Carpenter.
> Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
> Changes in v2:
> - addressed Sergei's comment re-align phy_mac_interrupt and drop
> useless parenthesis
> drivers/net/ethernet/broadcom/genet/bcmgenet.c | 17 ++++++-----------
> 1 file changed, 6 insertions(+), 11 deletions(-)
> diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
> index 192069d..5856457 100644
> --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
> +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
[...]
> @@ -1811,9 +1810,8 @@ static void bcmgenet_irq_task(struct work_struct *work)
> /* Link UP/DOWN event */
> if ((priv->hw_params->flags & GENET_HAS_MDIO_INTR) &&
> (priv->irq0_stat & (UMAC_IRQ_LINK_UP|UMAC_IRQ_LINK_DOWN))) {
> - if (priv->phydev)
> - phy_mac_interrupt(priv->phydev,
> - (priv->irq0_stat & UMAC_IRQ_LINK_UP));
> + phy_mac_interrupt(priv->phydev,
> + priv->irq0_stat & UMAC_IRQ_LINK_UP);
I still don't see this line aligned as needed, to start under 'priv->phydev'.
WBR, Sergei
next prev parent reply other threads:[~2014-02-25 16:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-25 0:56 [net-next v2 0/3] net: bcmgenet: trivial fixes Florian Fainelli
2014-02-25 0:56 ` [net-next v2 1/3] net: bcmgenet: drop checks on priv->phydev Florian Fainelli
2014-02-25 16:09 ` Sergei Shtylyov [this message]
2014-02-25 0:56 ` [net-next v2 2/3] net: bcmgenet: remove commented code in bcmgenet_xmit() Florian Fainelli
2014-02-25 0:56 ` [net-next v2 3/3] net: bcmgenet: remove unused bh_lock member Florian Fainelli
2014-02-25 1:27 ` [net-next v2 0/3] net: bcmgenet: trivial fixes David Miller
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=530CC054.9020809@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.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;
as well as URLs for NNTP newsgroup(s).