ALSA: 6fire: remove unused variable card
diff mbox

Message ID 20171016123558.12928-1-colin.king@canonical.com
State New
Headers show

Commit Message

Colin King Oct. 16, 2017, 12:35 p.m. UTC
From: Colin Ian King <colin.king@canonical.com>

The pointer card is being assigned a value but it is never used.
Remove this redundant variable. Cleans up clang warning:
Value stored to 'card' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 sound/usb/6fire/chip.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Takashi Iwai Oct. 16, 2017, 12:49 p.m. UTC | #1
On Mon, 16 Oct 2017 14:35:58 +0200,
Colin King wrote:
> 
> From: Colin Ian King <colin.king@canonical.com>
> 
> The pointer card is being assigned a value but it is never used.
> Remove this redundant variable. Cleans up clang warning:
> Value stored to 'card' is never read
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Thanks, applied.


Takashi

Patch
diff mbox

diff --git a/sound/usb/6fire/chip.c b/sound/usb/6fire/chip.c
index c7641cb50616..17d5e3ee6d73 100644
--- a/sound/usb/6fire/chip.c
+++ b/sound/usb/6fire/chip.c
@@ -174,11 +174,9 @@  static int usb6fire_chip_probe(struct usb_interface *intf,
 static void usb6fire_chip_disconnect(struct usb_interface *intf)
 {
 	struct sfire_chip *chip;
-	struct snd_card *card;
 
 	chip = usb_get_intfdata(intf);
 	if (chip) { /* if !chip, fw upload has been performed */
-		card = chip->card;
 		chip->intf_count--;
 		if (!chip->intf_count) {
 			mutex_lock(&register_mutex);