]> git.baikalelectronics.ru Git - kernel.git/commit
net: hnss3: use max() to simplify code
authorHao Chen <chenhao288@hisilicon.com>
Mon, 30 Aug 2021 06:06:41 +0000 (14:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Aug 2021 08:43:18 +0000 (09:43 +0100)
commit78fdbee4d50dd4c204981210dc2b099f5cae48f4
tree3539e2f4078504131e524a8ed0b12eab9c9c2db6
parent1b3a24f7041f18028e21679c912d5affc76faedc
net: hnss3: use max() to simplify code

Replace the "? :" statement wich max() to simplify code.

Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c