[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <48A3F0F0.1060000@garzik.org>
Date: Thu, 14 Aug 2008 04:46:40 -0400
From: Jeff Garzik <jeff@...zik.org>
To: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
CC: netdev@...r.kernel.org, davem@...emloft.net,
akpm@...ux-foundation.org, Bruce Allan <bruce.w.allan@...el.com>
Subject: Re: [PATCH 1/7] e1000e: Return 1 instead of a non-zero value for
link up indication
Jeff Kirsher wrote:
> From: Bruce Allan <bruce.w.allan@...el.com>
>
> 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@...el.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
> ---
>
> drivers/net/e1000e/ethtool.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/e1000e/ethtool.c b/drivers/net/e1000e/ethtool.c
> index cf9679f..e21c9e0 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;
applied 1-7
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists