diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-08-01 11:47:38 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-08-01 14:00:13 +0200 |
commit | 0d00085b905c904d6de4296aa6a1e3613d0a4d67 (patch) | |
tree | 5e0966b4dfb6259e0989d16968601544d8e7f5a9 | |
parent | 3b0cbc7812d759ffb38d881e75c0318512283d00 (diff) | |
download | op-kernel-dev-0d00085b905c904d6de4296aa6a1e3613d0a4d67.zip op-kernel-dev-0d00085b905c904d6de4296aa6a1e3613d0a4d67.tar.gz |
ALSA: sonicvibes: remove redundant pointer 'dir'
Pointer 'dir' is being assigned but is never used hence it is
redundant and can be removed.
Cleans up clang warning:
warning: variable 'dir' set but not used [-Wunused-but-set-variable]
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/sonicvibes.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/pci/sonicvibes.c b/sound/pci/sonicvibes.c index 7fbdb70..7218f38 100644 --- a/sound/pci/sonicvibes.c +++ b/sound/pci/sonicvibes.c @@ -1433,14 +1433,12 @@ static int snd_sonicvibes_midi(struct sonicvibes *sonic, { struct snd_mpu401 * mpu = rmidi->private_data; struct snd_card *card = sonic->card; - struct snd_rawmidi_str *dir; unsigned int idx; int err; mpu->private_data = sonic; mpu->open_input = snd_sonicvibes_midi_input_open; mpu->close_input = snd_sonicvibes_midi_input_close; - dir = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; for (idx = 0; idx < ARRAY_SIZE(snd_sonicvibes_midi_controls); idx++) if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_sonicvibes_midi_controls[idx], sonic))) < 0) return err; |