public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: Willy Tarreau <w@1wt.eu>
Cc: linux-kernel@vger.kernel.org, Greg KH <greg@kroah.com>
Subject: Re: [PATCH] fix "&& 0x03" obvious typo in net1080
Date: Mon, 20 Nov 2006 18:52:19 -0800	[thread overview]
Message-ID: <200611201852.20407.david-b@pacbell.net> (raw)
In-Reply-To: <20061119143301.GA2633@1wt.eu>

On Sunday 19 November 2006 6:33 am, Willy Tarreau wrote:
> Hi David,
> 
> I found this bug while grepping for "&& 0x" in drivers.
> Care to forward upstream ?

I thought this already _was_ upstream ... Greg?


> Regards,
> Willy
> 
> >From e9b19b98763726db99237ccfea907cf88d3572ac Mon Sep 17 00:00:00 2001
> From: Willy Tarreau <w@1wt.eu>
> Date: Sun, 19 Nov 2006 15:30:11 +0100
> Subject: [PATCH] fix "&& 0x03" obvious typo in net1080
> 
> Another obvious occurrence of this typo.
> 
> Signed-off-by: Willy Tarreau <w@1wt.eu>
> ---
>  drivers/usb/net/net1080.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/net/net1080.c b/drivers/usb/net/net1080.c
> index ce00de8..a774105 100644
> --- a/drivers/usb/net/net1080.c
> +++ b/drivers/usb/net/net1080.c
> @@ -237,12 +237,12 @@ #define	STATUS_PORT_A		(1 << 15)
>  #define	STATUS_CONN_OTHER	(1 << 14)
>  #define	STATUS_SUSPEND_OTHER	(1 << 13)
>  #define	STATUS_MAILBOX_OTHER	(1 << 12)
> -#define	STATUS_PACKETS_OTHER(n)	(((n) >> 8) && 0x03)
> +#define	STATUS_PACKETS_OTHER(n)	(((n) >> 8) & 0x03)
>  
>  #define	STATUS_CONN_THIS	(1 << 6)
>  #define	STATUS_SUSPEND_THIS	(1 << 5)
>  #define	STATUS_MAILBOX_THIS	(1 << 4)
> -#define	STATUS_PACKETS_THIS(n)	(((n) >> 0) && 0x03)
> +#define	STATUS_PACKETS_THIS(n)	(((n) >> 0) & 0x03)
>  
>  #define	STATUS_UNSPEC_MASK	0x0c8c
>  #define	STATUS_NOISE_MASK 	((u16)~(0x0303|STATUS_UNSPEC_MASK))
> -- 
> 1.4.2.4
> 

  reply	other threads:[~2006-11-21  2:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-19 14:33 [PATCH] fix "&& 0x03" obvious typo in net1080 Willy Tarreau
2006-11-21  2:52 ` David Brownell [this message]
2006-11-21  4:29   ` Greg KH
2006-11-21  5:08     ` Willy Tarreau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200611201852.20407.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=w@1wt.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox