Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56e1f829 authored by Bruce Allan's avatar Bruce Allan Committed by Jeff Garzik
Browse files

e1000e: Return 1 instead of a non-zero value for link up indication



A number of users have mentioned they have tools that rely on a link-up
indication having a return value of 1 rather than a non-zero value.

Signed-off-by: default avatarBruce Allan <bruce.w.allan@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 0d63bea2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -177,7 +177,7 @@ static u32 e1000_get_link(struct net_device *netdev)
	u32 status;
	
	status = er32(STATUS);
	return (status & E1000_STATUS_LU);
	return (status & E1000_STATUS_LU) ? 1 : 0;
}

static int e1000_set_spd_dplx(struct e1000_adapter *adapter, u16 spddplx)