]> git.baikalelectronics.ru Git - kernel.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)
commitab37ee52294f9ce41d965464b2a99de19a4e665e
treed8bc1fc5cc9d9773bc94ad031a33b2e53456cbea
parent03443040ccd812e3513f3c9381dde3afc3b7585c
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