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 hdmi4_audio_config

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

drivers/gpu/drm/omapdrm/dss/hdmi4_core.c: In function hdmi4_audio_config:
drivers/gpu/drm/omapdrm/dss/hdmi4_core.c:689: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-5-git-send-email-zhengbin13@huawei.com

authored by

zhengbin and committed by
Tomi Valkeinen
ad7adde5 c30a1943

+2 -2
+2 -2
drivers/gpu/drm/omapdrm/dss/hdmi4_core.c
··· 676 676 struct hdmi_audio_format audio_format; 677 677 struct hdmi_audio_dma audio_dma; 678 678 struct hdmi_core_audio_config acore; 679 - int err, n, cts, channel_count; 679 + int n, cts, channel_count; 680 680 unsigned int fs_nr; 681 681 bool word_length_16b = false; 682 682 ··· 738 738 return -EINVAL; 739 739 } 740 740 741 - err = hdmi_compute_acr(pclk, fs_nr, &n, &cts); 741 + hdmi_compute_acr(pclk, fs_nr, &n, &cts); 742 742 743 743 /* Audio clock regeneration settings */ 744 744 acore.n = n;