mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
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: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
0d63bea2c2
commit
56e1f82968
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ static u32 e1000_get_link(struct net_device *netdev)
|
||||||
u32 status;
|
u32 status;
|
||||||
|
|
||||||
status = er32(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)
|
static int e1000_set_spd_dplx(struct e1000_adapter *adapter, u16 spddplx)
|
||||||
|
|
Loading…
Reference in a new issue