From: Andrew Lunn <andrew@lunn.ch>
To: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel@savoirfairelinux.com,
"David S. Miller" <davem@davemloft.net>,
Florian Fainelli <f.fainelli@gmail.com>
Subject: Re: [PATCH net-next v2 1/7] net: dsa: mv88e6xxx: drop double ds assignment
Date: Sat, 16 Apr 2016 01:39:17 +0200 [thread overview]
Message-ID: <20160415233917.GA32136@lunn.ch> (raw)
In-Reply-To: <1460762488-2633-2-git-send-email-vivien.didelot@savoirfairelinux.com>
On Fri, Apr 15, 2016 at 07:21:22PM -0400, Vivien Didelot wrote:
> Every driver assigns ps->ds even though it gets assigned in the shared
> mv88e6xxx_setup_common function. Kill redundancy.
>
> Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Thanks
Andrew
> ---
> drivers/net/dsa/mv88e6123.c | 2 --
> drivers/net/dsa/mv88e6131.c | 2 --
> drivers/net/dsa/mv88e6171.c | 2 --
> drivers/net/dsa/mv88e6352.c | 2 --
> 4 files changed, 8 deletions(-)
>
> diff --git a/drivers/net/dsa/mv88e6123.c b/drivers/net/dsa/mv88e6123.c
> index c34283d..88a812d 100644
> --- a/drivers/net/dsa/mv88e6123.c
> +++ b/drivers/net/dsa/mv88e6123.c
> @@ -76,8 +76,6 @@ static int mv88e6123_setup(struct dsa_switch *ds)
> struct mv88e6xxx_priv_state *ps = ds_to_priv(ds);
> int ret;
>
> - ps->ds = ds;
> -
> ret = mv88e6xxx_setup_common(ds);
> if (ret < 0)
> return ret;
> diff --git a/drivers/net/dsa/mv88e6131.c b/drivers/net/dsa/mv88e6131.c
> index f5d75fc..6b2bcb0 100644
> --- a/drivers/net/dsa/mv88e6131.c
> +++ b/drivers/net/dsa/mv88e6131.c
> @@ -94,8 +94,6 @@ static int mv88e6131_setup(struct dsa_switch *ds)
> struct mv88e6xxx_priv_state *ps = ds_to_priv(ds);
> int ret;
>
> - ps->ds = ds;
> -
> ret = mv88e6xxx_setup_common(ds);
> if (ret < 0)
> return ret;
> diff --git a/drivers/net/dsa/mv88e6171.c b/drivers/net/dsa/mv88e6171.c
> index f562250..40222b0 100644
> --- a/drivers/net/dsa/mv88e6171.c
> +++ b/drivers/net/dsa/mv88e6171.c
> @@ -72,8 +72,6 @@ static int mv88e6171_setup(struct dsa_switch *ds)
> struct mv88e6xxx_priv_state *ps = ds_to_priv(ds);
> int ret;
>
> - ps->ds = ds;
> -
> ret = mv88e6xxx_setup_common(ds);
> if (ret < 0)
> return ret;
> diff --git a/drivers/net/dsa/mv88e6352.c b/drivers/net/dsa/mv88e6352.c
> index e54ee27..dbd920e 100644
> --- a/drivers/net/dsa/mv88e6352.c
> +++ b/drivers/net/dsa/mv88e6352.c
> @@ -84,8 +84,6 @@ static int mv88e6352_setup(struct dsa_switch *ds)
> struct mv88e6xxx_priv_state *ps = ds_to_priv(ds);
> int ret;
>
> - ps->ds = ds;
> -
> ret = mv88e6xxx_setup_common(ds);
> if (ret < 0)
> return ret;
> --
> 2.8.0
>
next prev parent reply other threads:[~2016-04-15 23:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-15 23:21 [PATCH net-next v2 0/7] net: dsa: mv88e6xxx: factorize switch info Vivien Didelot
2016-04-15 23:21 ` [PATCH net-next v2 1/7] net: dsa: mv88e6xxx: drop double ds assignment Vivien Didelot
2016-04-15 23:39 ` Andrew Lunn [this message]
2016-04-15 23:21 ` [PATCH net-next v2 2/7] net: dsa: mv88e6xxx: drop revision probing Vivien Didelot
2016-04-15 23:43 ` Andrew Lunn
2016-04-15 23:21 ` [PATCH net-next v2 3/7] net: dsa: mv88e6xxx: add switch info Vivien Didelot
2016-04-15 23:55 ` Andrew Lunn
2016-04-15 23:21 ` [PATCH net-next v2 4/7] net: dsa: mv88e6xxx: add family to info Vivien Didelot
2016-04-15 23:57 ` Andrew Lunn
2016-04-15 23:21 ` [PATCH net-next v2 5/7] net: dsa: mv88e6xxx: add number of ports " Vivien Didelot
2016-04-15 23:59 ` Andrew Lunn
2016-04-15 23:21 ` [PATCH net-next v2 6/7] net: dsa: mv88e6xxx: add number of db " Vivien Didelot
2016-04-16 0:01 ` Andrew Lunn
2016-04-15 23:21 ` [PATCH net-next v2 7/7] net: dsa: mv88e6xxx: remove switch ID Vivien Didelot
2016-04-16 0:03 ` Andrew Lunn
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=20160415233917.GA32136@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=kernel@savoirfairelinux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=vivien.didelot@savoirfairelinux.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.