OSDN Git Service

ALSA: hda/ca0132: remove redundant initialization of variable status
authorColin Ian King <colin.king@canonical.com>
Fri, 9 Jul 2021 15:29:38 +0000 (16:29 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Jul 2021 11:12:47 +0000 (13:12 +0200)
The variable status is being initialized with a value that is never
read, the assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210709152938.460763-1-colin.king@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c

index b66e7bd..50ca72e 100644 (file)
@@ -2270,7 +2270,7 @@ static int dspio_send_scp_message(struct hda_codec *codec,
                                  unsigned int *bytes_returned)
 {
        struct ca0132_spec *spec = codec->spec;
-       int status = -1;
+       int status;
        unsigned int scp_send_size = 0;
        unsigned int total_size;
        bool waiting_for_resp = false;