Skip to content

Commit

Permalink
e1000e: Return 1 instead of a non-zero value for link up indication
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bruce Allan authored and Jeff Garzik committed Aug 14, 2008
1 parent 0d63bea commit 56e1f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/e1000e/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 56e1f82

Please sign in to comment.