]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9c41341f912532a027136764219e2b65b33d032f
treed97203e8499cfa430db077f1a0c941b70891b441
parent01f491c10f8a24f45b43f8021f5263cb25164481
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