ALSA: hda - correct bracketing in spdif test in patch_sigmatel.c
authorHarvey Harrison <harvey.harrison@gmail.com>
Wed, 22 Oct 2008 03:28:04 +0000 (20:28 -0700)
committerTakashi Iwai <tiwai@suse.de>
Wed, 22 Oct 2008 06:00:46 +0000 (08:00 +0200)
Noticed by sparse:
sound/pci/hda/patch_sigmatel.c:1285:43: warning: dubious: !x & y

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Acked-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_sigmatel.c

index a2ac720..788fdc6 100644 (file)
@@ -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;