OSDN Git Service

net: smc911x: replace ternary operator with min()
authorGuo Zhengkui <guozhengkui@vivo.com>
Mon, 16 May 2022 11:56:25 +0000 (19:56 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 May 2022 00:39:55 +0000 (17:39 -0700)
commit5ff0348b7f755aac2770bbfc244f5371e4e55224
treed97203e8499cfa430db077f1a0c941b70891b441
parentab4d6357c95f5aa6473cc39382271916091378e3
net: smc911x: replace ternary operator with min()

Fix the following coccicheck warning:

drivers/net/ethernet/smsc/smc911x.c:483:20-22: WARNING opportunity for min()

Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
Link: https://lore.kernel.org/r/20220516115627.66363-1-guozhengkui@vivo.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/smsc/smc911x.c