提交 b9b7b5e4 编写于 作者: C Cosmin-Florin Aluchenesei 提交者: Ramon Fried

drivers: net: aquantia: fix unsigned compared against 0

Change the reg variable to not be unsigned so that we not get into an
unsigned compared against 0.
Signed-off-by: NCosmin-Florin Aluchenesei <aluchenesei.cosmin-florin@nxp.com>
Reviewed-by: NRamon Fried <rfried.dev@gmail.com>
上级 79d191ef
......@@ -3,7 +3,7 @@
* Aquantia PHY drivers
*
* Copyright 2014 Freescale Semiconductor, Inc.
* Copyright 2018 NXP
* Copyright 2018, 2021 NXP
*/
#include <config.h>
#include <common.h>
......@@ -554,8 +554,9 @@ int aquantia_config(struct phy_device *phydev)
int aquantia_startup(struct phy_device *phydev)
{
u32 reg, speed;
u32 speed;
int i = 0;
int reg;
phydev->duplex = DUPLEX_FULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册