Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: fbdev: omapfb: Fix set but not used warnings in hdmi*_core

Fix a few W=1 warnings about unused assignments.
Drop the unused error code.

v2:
- Subject updated (Lee)

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Qilong Zhang <zhangqilong3@huawei.com>
Cc: "Alexander A. Klimov" <grandmaster@al2klimov.de>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Lee Jones <lee.jones@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201206190247.1861316-4-sam@ravnborg.org

+4 -4
+2 -2
drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c
··· 679 679 struct hdmi_audio_format audio_format; 680 680 struct hdmi_audio_dma audio_dma; 681 681 struct hdmi_core_audio_config acore; 682 - int err, n, cts, channel_count; 682 + int n, cts, channel_count; 683 683 unsigned int fs_nr; 684 684 bool word_length_16b = false; 685 685 ··· 741 741 return -EINVAL; 742 742 } 743 743 744 - err = hdmi_compute_acr(pclk, fs_nr, &n, &cts); 744 + hdmi_compute_acr(pclk, fs_nr, &n, &cts); 745 745 746 746 /* Audio clock regeneration settings */ 747 747 acore.n = n;
+2 -2
drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
··· 790 790 struct hdmi_audio_format audio_format; 791 791 struct hdmi_audio_dma audio_dma; 792 792 struct hdmi_core_audio_config core_cfg; 793 - int err, n, cts, channel_count; 793 + int n, cts, channel_count; 794 794 unsigned int fs_nr; 795 795 bool word_length_16b = false; 796 796 ··· 833 833 return -EINVAL; 834 834 } 835 835 836 - err = hdmi_compute_acr(pclk, fs_nr, &n, &cts); 836 + hdmi_compute_acr(pclk, fs_nr, &n, &cts); 837 837 core_cfg.n = n; 838 838 core_cfg.cts = cts; 839 839