]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
devlink: Use switch-case instead of if-else
authorParav Pandit <parav@mellanox.com>
Fri, 30 Aug 2019 10:39:45 +0000 (05:39 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Sep 2019 06:46:13 +0000 (23:46 -0700)
commit58b6be4175a4b4a58210bf171ac90886244da98c
tree485f61fcd5409c48b7e32d722b2d3cb802f3f833
parentc7282b501f22a21ac8dfb6d3856aa1a92a7df5d5
devlink: Use switch-case instead of if-else

Make core more readable with switch-case for various port flavours.

Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c