struct hdmi_audio_format audio_format;
        struct hdmi_audio_dma audio_dma;
        struct hdmi_core_audio_config acore;
-       int err, n, cts, channel_count;
+       int n, cts, channel_count;
        unsigned int fs_nr;
        bool word_length_16b = false;
 
                return -EINVAL;
        }
 
-       err = hdmi_compute_acr(pclk, fs_nr, &n, &cts);
+       hdmi_compute_acr(pclk, fs_nr, &n, &cts);
 
        /* Audio clock regeneration settings */
        acore.n = n;
 
        struct hdmi_audio_format audio_format;
        struct hdmi_audio_dma audio_dma;
        struct hdmi_core_audio_config core_cfg;
-       int err, n, cts, channel_count;
+       int n, cts, channel_count;
        unsigned int fs_nr;
        bool word_length_16b = false;
 
                return -EINVAL;
        }
 
-       err = hdmi_compute_acr(pclk, fs_nr, &n, &cts);
+       hdmi_compute_acr(pclk, fs_nr, &n, &cts);
        core_cfg.n = n;
        core_cfg.cts = cts;