Skip to content

Commit a16fbb8

Browse files
Matthias Kaehlcketiwai
authored andcommitted
ALSA: hda/ca0132: Remove double parentheses
The extra pairs of parantheses are not needed and causes clang to generate warnings like this: sound/pci/hda/patch_ca0132.c:1171:14: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] if ((buffer == NULL)) ~~~~~~~^~~~~~~ sound/pci/hda/patch_ca0132.c:1171:14: note: remove extraneous parentheses around the comparison to silence this warning if ((buffer == NULL)) ~ ^ ~ sound/pci/hda/patch_ca0132.c:1171:14: note: use '=' to turn this equality comparison into an assignment if ((buffer == NULL)) Signed-off-by: Matthias Kaehlcke <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent cd7d1ea commit a16fbb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/pci/hda/patch_ca0132.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ static int dspio_write_multiple(struct hda_codec *codec,
11681168
int status = 0;
11691169
unsigned int count;
11701170

1171-
if ((buffer == NULL))
1171+
if (buffer == NULL)
11721172
return -EINVAL;
11731173

11741174
count = 0;
@@ -1210,7 +1210,7 @@ static int dspio_read_multiple(struct hda_codec *codec, unsigned int *buffer,
12101210
unsigned int skip_count;
12111211
unsigned int dummy;
12121212

1213-
if ((buffer == NULL))
1213+
if (buffer == NULL)
12141214
return -1;
12151215

12161216
count = 0;

0 commit comments

Comments
 (0)