From: Takashi Iwai <tiwai@suse.de>
To: Nickolai Zeldovich <nickolai@csail.mit.edu>
Cc: Jaroslav Kysela <perex@perex.cz>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sound/pci/au88x0/au88x0_synth.c: fix incorrect left shift
Date: Mon, 07 Jan 2013 17:30:35 +0100 [thread overview]
Message-ID: <s5h7gnpnefo.wl%tiwai@suse.de> (raw)
In-Reply-To: <1357413248-42031-1-git-send-email-nickolai@csail.mit.edu>
At Sat, 5 Jan 2013 14:14:08 -0500,
Nickolai Zeldovich wrote:
>
> vortex_wt_setdsout performs bit-negation on the bit position (wt&0x1f)
> rather than on the resulting bitmask. This code is never actually
> invoked (vortex_wt_setdsout is always called with en=1), so this does
> not currently cause any problem, and this patch is simply cleanup.
>
> Signed-off-by: Nickolai Zeldovich <nickolai@csail.mit.edu>
Thanks, applied.
Takashi
> ---
> sound/pci/au88x0/au88x0_synth.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/pci/au88x0/au88x0_synth.c b/sound/pci/au88x0/au88x0_synth.c
> index 2805e34..8bef473 100644
> --- a/sound/pci/au88x0/au88x0_synth.c
> +++ b/sound/pci/au88x0/au88x0_synth.c
> @@ -58,7 +58,7 @@ static void vortex_wt_setdsout(vortex_t * vortex, u32 wt, int en)
> if (en)
> temp |= (1 << (wt & 0x1f));
> else
> - temp &= (1 << ~(wt & 0x1f));
> + temp &= ~(1 << (wt & 0x1f));
> hwwrite(vortex->mmio, WT_DSREG((wt >= 0x20) ? 1 : 0), temp);
> }
>
> --
> 1.7.10.4
>
parent reply other threads:[~2013-01-07 16:30 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1357413248-42031-1-git-send-email-nickolai@csail.mit.edu>]
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=s5h7gnpnefo.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=nickolai@csail.mit.edu \
--cc=perex@perex.cz \
/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
all inboxes | Powered by JetHome®