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

Configure Feed

Select the types of activity you want to include in your feed.

drm/omap: Remove set but not used variable 'err' in hdmi5_audio_config

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/gpu/drm/omapdrm/dss/hdmi5_core.c: In function hdmi5_audio_config:
drivers/gpu/drm/omapdrm/dss/hdmi5_core.c:812:6: warning: variable err set but not used [-Wunused-but-set-variable]

It is not used since commit f5bab2229190 ("OMAPDSS:
HDMI: Add OMAP5 HDMI support")

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1570518949-47574-4-git-send-email-zhengbin13@huawei.com

authored by

zhengbin and committed by
Tomi Valkeinen
c30a1943 83e3b8a9

+2 -2
+2 -2
drivers/gpu/drm/omapdrm/dss/hdmi5_core.c
··· 807 807 struct hdmi_audio_format audio_format; 808 808 struct hdmi_audio_dma audio_dma; 809 809 struct hdmi_core_audio_config core_cfg; 810 - int err, n, cts, channel_count; 810 + int n, cts, channel_count; 811 811 unsigned int fs_nr; 812 812 bool word_length_16b = false; 813 813 ··· 850 850 return -EINVAL; 851 851 } 852 852 853 - err = hdmi_compute_acr(pclk, fs_nr, &n, &cts); 853 + hdmi_compute_acr(pclk, fs_nr, &n, &cts); 854 854 core_cfg.n = n; 855 855 core_cfg.cts = cts; 856 856