]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ALSA: mixart: Remove unused variable
authorSachin Kamat <sachin.kamat@samsung.com>
Tue, 1 Jul 2014 11:32:58 +0000 (17:02 +0530)
committerTakashi Iwai <tiwai@suse.de>
Tue, 1 Jul 2014 12:06:31 +0000 (14:06 +0200)
'err' is not used in the function. Remove it.

Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/mixart/mixart_core.c

index 71f4bdcc4055fbec2aa37317a5a8d2e1c16bc123..84f67450924e55fec906cb546151ad32ae9e7d28 100644 (file)
@@ -151,13 +151,11 @@ static int send_msg( struct mixart_mgr *mgr,
 {
        u32 headptr, tailptr;
        u32 msg_frame_address;
-       int err, i;
+       int i;
 
        if (snd_BUG_ON(msg->size % 4))
                return -EINVAL;
 
-       err = 0;
-
        /* get message frame address */
        tailptr = readl_be(MIXART_MEM(mgr, MSG_INBOUND_FREE_TAIL));
        headptr = readl_be(MIXART_MEM(mgr, MSG_INBOUND_FREE_HEAD));