Skip to content

Commit 056436a

Browse files
KonstaTpelwell
authored andcommitted
fixup! ASoC:Add Hifiberry Studio DAC8x soundcard driver
* Fixes build with Clang. sound/soc/bcm/hifiberry_studio_dac8x.c:770:41: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] 770 | if ((priv->card_info.card_clk_options == 0x02)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ sound/soc/bcm/hifiberry_studio_dac8x.c:770:41: note: remove extraneous parentheses around the comparison to silence this warning 770 | if ((priv->card_info.card_clk_options == 0x02)) { | ~ ^ ~ sound/soc/bcm/hifiberry_studio_dac8x.c:770:41: note: use '=' to turn this equality comparison into an assignment 770 | if ((priv->card_info.card_clk_options == 0x02)) { | ^~ | = 1 error generated.
1 parent d51a12f commit 056436a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/bcm/hifiberry_studio_dac8x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ static int hb_uni_read_card_info(struct platform_device *pdev)
767767
return -EINVAL;
768768
}
769769
} else {
770-
if ((priv->card_info.card_clk_options == 0x02)) {
770+
if (priv->card_info.card_clk_options == 0x02) {
771771
dev_err(&pdev->dev,
772772
"Card cannot run as i2s clock consumer\n");
773773
return -EINVAL;

0 commit comments

Comments
 (0)