Commit da74ae3e32374755e0fbdfed4074cf839a82f615
Committed by
Takashi Iwai
1 parent
863b45180e
Exists in
master
and in
39 other branches
ALSA: hda - correct bracketing in spdif test in patch_sigmatel.c
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
sound/pci/hda/patch_sigmatel.c
... | ... | @@ -1282,7 +1282,7 @@ |
1282 | 1282 | return err; |
1283 | 1283 | spec->multiout.share_spdif = 1; |
1284 | 1284 | } |
1285 | - if (spec->dig_in_nid && (!spec->gpio_dir & 0x01)) { | |
1285 | + if (spec->dig_in_nid && !(spec->gpio_dir & 0x01)) { | |
1286 | 1286 | err = snd_hda_create_spdif_in_ctls(codec, spec->dig_in_nid); |
1287 | 1287 | if (err < 0) |
1288 | 1288 | return err; |