mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-17 22:28:17 +01:00
net: mvneta: Use bool instead of int for boolean variable
Use the bool type instead of int for status_change variable. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
ca4730a466
commit
3b38fad182
@ -1154,7 +1154,7 @@ static void mvneta_adjust_link(struct udevice *dev)
|
|||||||
{
|
{
|
||||||
struct mvneta_port *pp = dev_get_priv(dev);
|
struct mvneta_port *pp = dev_get_priv(dev);
|
||||||
struct phy_device *phydev = pp->phydev;
|
struct phy_device *phydev = pp->phydev;
|
||||||
int status_change = 0;
|
bool status_change = false;
|
||||||
|
|
||||||
if (pp->fixed_link) {
|
if (pp->fixed_link) {
|
||||||
debug("Using fixed link, skip link adjust\n");
|
debug("Using fixed link, skip link adjust\n");
|
||||||
@ -1193,7 +1193,7 @@ static void mvneta_adjust_link(struct udevice *dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
pp->link = phydev->link;
|
pp->link = phydev->link;
|
||||||
status_change = 1;
|
status_change = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status_change) {
|
if (status_change) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user