[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160607215120.GF28994@lunn.ch>
Date: Tue, 7 Jun 2016 23:51:20 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Florian Fainelli <f.fainelli@...il.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net,
vivien.didelot@...oirfairelinux.com
Subject: Re: [PATCH net-next v3 5/6] net: dsa: Initialize CPU port ethtool
ops per tree
> +int dsa_cpu_port_ethtool_setup(struct dsa_switch_tree *dst,
> + struct dsa_switch *ds)
> +{
> + struct net_device *master;
> + struct ethtool_ops *cpu_ops;
> +
> + master = ds->dst->master_netdev;
You pass in dst as a parameter, and then don't use it!
> +void dsa_cpu_port_ethtool_restore(struct dsa_switch_tree *dst,
> + struct dsa_switch *ds)
> +{
> + struct net_device *master;
> +
> + master = ds->dst->master_netdev;
Same here.
Andrew
Powered by blists - more mailing lists