]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
devlink: remove implicit type set in port register
authorJiri Pirko <jiri@mellanox.com>
Fri, 8 Apr 2016 17:11:20 +0000 (19:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2016 19:38:42 +0000 (15:38 -0400)
commita9844881ba19d15d274bd684d4de0758bbd71c90
treed8bc1fc5cc9d9773bc94ad031a33b2e53456cbea
parent24d390b2acea6c8cd7c95a9204f23eb15cec8269
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>
net/core/devlink.c