[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1205112447.656.111.camel@localhost>
Date: Sun, 09 Mar 2008 18:27:27 -0700
From: Joe Perches <joe@...ches.com>
To: Roel Kluin <12o3l@...cali.nl>, Alan Cox <alan@...rguk.ukuu.org.uk>
Cc: Paul Gortmaker <p_gortmaker@...oo.com>, jschlst@...ba.org,
netdev@...r.kernel.org, Alexey Dobriyan <adobriyan@...ru>
Subject: Re: drivers/net/tokenring/smctr.c: logical-bitwise or confusion?
On Mon, 2008-03-10 at 02:16 +0100, Roel Kluin wrote:
> diff --git a/drivers/net/tokenring/smctr.c b/drivers/net/tokenring/smctr.c
> index 8909050..8ae5837 100644
> --- a/drivers/net/tokenring/smctr.c
> +++ b/drivers/net/tokenring/smctr.c
> @@ -3413,7 +3413,7 @@ static int smctr_make_tx_status_code(struct net_device *dev,
> tsv->svi = TRANSMIT_STATUS_CODE;
> tsv->svl = S_TRANSMIT_STATUS_CODE;
>
> - tsv->svv[0] = ((tx_fstatus & 0x0100 >> 6) || IBM_PASS_SOURCE_ADDR);
> + tsv->svv[0] = ((tx_fstatus & 0x0100 >> 6) | IBM_PASS_SOURCE_ADDR);
>
> /* Stripped frame status of Transmitted Frame */
> tsv->svv[1] = tx_fstatus & 0xff;
This has been posted a few times over the last 6 months.
for instance:
http://www.ussg.iu.edu/hypermail/linux/kernel/0710.1/0887.html
Somebody please apply it.
--
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