]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: replace if-else statements with switch
authorWeihang Li <liweihang@huawei.com>
Wed, 16 Jun 2021 10:01:26 +0000 (18:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2021 19:34:07 +0000 (12:34 -0700)
commit2323ec3cd96cda14c24da821b9d4c722146b925e
tree193e30a0398dd4a9170a5af2f9ffd5c1ace67e79
parent66c8fd8647ea97ee420142fa7fd4e9249044a7bd
net: phy: replace if-else statements with switch

Switch statement is clearer than a group of 'if-else'.

Signed-off-by: Weihang Li <liweihang@huawei.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c