diff options
author | Jiri Pirko <jiri@mellanox.com> | 2016-04-08 19:11:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-08 15:38:42 -0400 |
commit | a9844881ba19d15d274bd684d4de0758bbd71c90 (patch) | |
tree | d8bc1fc5cc9d9773bc94ad031a33b2e53456cbea /net/core/devlink.c | |
parent | 24d390b2acea6c8cd7c95a9204f23eb15cec8269 (diff) | |
download | op-kernel-dev-a9844881ba19d15d274bd684d4de0758bbd71c90.zip op-kernel-dev-a9844881ba19d15d274bd684d4de0758bbd71c90.tar.gz |
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/devlink.c')
-rw-r--r-- | net/core/devlink.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c index 590fa56..44f880d 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); |