mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 06:21:31 +00:00
net: dsa: remove name arg from slave create
Now that slave dsa_port always have their name set, there is no need to pass it to dsa_slave_create() anymore. Remove this argument. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1838fa89a2
commit
951259aa60
4 changed files with 5 additions and 5 deletions
|
@ -257,10 +257,9 @@ static void dsa_cpu_port_unapply(struct dsa_port *port)
|
|||
static int dsa_user_port_apply(struct dsa_port *port)
|
||||
{
|
||||
struct dsa_switch *ds = port->ds;
|
||||
const char *name = port->name;
|
||||
int err;
|
||||
|
||||
err = dsa_slave_create(port, name);
|
||||
err = dsa_slave_create(port);
|
||||
if (err) {
|
||||
dev_warn(ds->dev, "Failed to create slave %d: %d\n",
|
||||
port->index, err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue