ALSA: hdsp: remove redundant assignment to pointer kctl
[linux-2.6-microblaze.git] / sound / pci / rme9652 / hdsp.c
index 3db6413..dcc43a8 100644 (file)
@@ -3314,7 +3314,7 @@ static int snd_hdsp_create_controls(struct snd_card *card, struct hdsp *hdsp)
        if (hdsp->io_type == RPM) {
                /* RPM Bypass, Disconnect and Input switches */
                for (idx = 0; idx < ARRAY_SIZE(snd_hdsp_rpm_controls); idx++) {
-                       err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_rpm_controls[idx], hdsp));
+                       err = snd_ctl_add(card, snd_ctl_new1(&snd_hdsp_rpm_controls[idx], hdsp));
                        if (err < 0)
                                return err;
                }