From: Matthew Ranostay <mranostay@embeddedalley.com>
To: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Takashi Iwai <tiwai@suse.de>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] sound: correct bracketing in spdif test
Date: Tue, 21 Oct 2008 23:38:31 -0400 [thread overview]
Message-ID: <48FEA037.4050007@embeddedalley.com> (raw)
In-Reply-To: <1224646084.5768.9.camel@brick>
Harvey Harrison wrote:
> Noticed by sparse:
> sound/pci/hda/patch_sigmatel.c:1285:43: warning: dubious: !x & y
>
> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
> ---
> sound/pci/hda/patch_sigmatel.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
> index a2ac720..788fdc6 100644
> --- a/sound/pci/hda/patch_sigmatel.c
> +++ b/sound/pci/hda/patch_sigmatel.c
> @@ -1282,7 +1282,7 @@ static int stac92xx_build_controls(struct hda_codec *codec)
> return err;
> spec->multiout.share_spdif = 1;
> }
> - if (spec->dig_in_nid && (!spec->gpio_dir & 0x01)) {
> + if (spec->dig_in_nid && !(spec->gpio_dir & 0x01)) {
> err = snd_hda_create_spdif_in_ctls(codec, spec->dig_in_nid);
> if (err < 0)
> return err;
Thanks for finding this.
Acked-by: Matthew Ranostay <mranostay@embeddedalley.com>
next prev parent reply other threads:[~2008-10-22 3:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-22 3:28 [PATCH] sound: correct bracketing in spdif test Harvey Harrison
2008-10-22 3:38 ` Matthew Ranostay [this message]
2008-10-22 6:02 ` Takashi Iwai
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=48FEA037.4050007@embeddedalley.com \
--to=mranostay@embeddedalley.com \
--cc=harvey.harrison@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tiwai@suse.de \
/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