ALSA: hda/ca0132: Remove double parentheses
authorMatthias Kaehlcke <mka@chromium.org>
Wed, 15 Mar 2017 22:41:23 +0000 (15:41 -0700)
committerTakashi Iwai <tiwai@suse.de>
Mon, 20 Mar 2017 11:55:01 +0000 (12:55 +0100)
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 <mka@chromium.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c

index 07a9deb1747779245b42bd1f50e8e423c5f2a8f1..fb2e242c2522a47e8955f28dbfed6b0708c12297 100644 (file)
@@ -1168,7 +1168,7 @@ static int dspio_write_multiple(struct hda_codec *codec,
        int status = 0;
        unsigned int count;
 
-       if ((buffer == NULL))
+       if (buffer == NULL)
                return -EINVAL;
 
        count = 0;
@@ -1210,7 +1210,7 @@ static int dspio_read_multiple(struct hda_codec *codec, unsigned int *buffer,
        unsigned int skip_count;
        unsigned int dummy;
 
-       if ((buffer == NULL))
+       if (buffer == NULL)
                return -1;
 
        count = 0;