net: marvell: Use min() instead of doing it manually
authorHaowen Bai <baihaowen88@gmail.com>
Thu, 3 Mar 2022 01:38:49 +0000 (09:38 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Mar 2022 05:06:43 +0000 (21:06 -0800)
commit2f5e65de0496c2e46c91afd93be2006cb9ace1d6
treefe7762192c9b1845d8997e082ffb23474143f52a
parent80901bff812984624918d9d03f9286e3245ee9a5
net: marvell: Use min() instead of doing it manually

Fix following coccicheck warning:
drivers/net/ethernet/marvell/mv643xx_eth.c:1664:35-36: WARNING opportunity for min()

Signed-off-by: Haowen Bai <baihaowen88@gmail.com>
Link: https://lore.kernel.org/r/1646271529-7659-1-git-send-email-baihaowen88@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/mv643xx_eth.c