summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2016-04-08 19:11:20 +0200
committerDavid S. Miller <davem@davemloft.net>2016-04-08 15:38:42 -0400
commita9844881ba19d15d274bd684d4de0758bbd71c90 (patch)
treed8bc1fc5cc9d9773bc94ad031a33b2e53456cbea /net/core
parent24d390b2acea6c8cd7c95a9204f23eb15cec8269 (diff)
devlink: remove implicit type set in port register
As we rely on caller zeroing or correctly set the struct before the call, this implicit type set is either no-op (DEVLINK_PORT_TYPE_NOTSET is 0) or it rewrites wanted value. So remove this. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/devlink.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c
index 590fa561cb7f..44f880d3b816 100644
--- a/net/core/devlink.c
+++ b/net/core/devlink.c
@@ -630,7 +630,6 @@ int devlink_port_register(struct devlink *devlink,
}
devlink_port->devlink = devlink;
devlink_port->index = port_index;
- devlink_port->type = DEVLINK_PORT_TYPE_NOTSET;
devlink_port->registered = true;
list_add_tail(&devlink_port->list, &devlink->port_list);
mutex_unlock(&devlink_port_mutex);