From: Bruce Allan Date: Sat, 9 Aug 2008 01:35:44 +0000 (-0700) Subject: e1000e: Return 1 instead of a non-zero value for link up indication X-Git-Tag: v2.6.27-rc4~39^2~48^2~22 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=56e1f82968af79f70902008098a4687198142ce7;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Jeff Kirsher Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/e1000e/ethtool.c b/drivers/net/e1000e/ethtool.c index cf9679f2b7c..e21c9e0f373 100644 --- a/drivers/net/e1000e/ethtool.c +++ b/drivers/net/e1000e/ethtool.c @@ -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)