drm/mediatek: Optimize functions which do not need to return
authorBernard Zhao <bernard@vivo.com>
Tue, 13 Oct 2020 08:55:12 +0000 (01:55 -0700)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Sun, 8 Nov 2020 02:55:17 +0000 (10:55 +0800)
commita812ca1963e5b51804236a91158d46121d4c502e
treea34293d6c9aa656d720d0f7d9a04d3bce72c981d
parentc1ff4e3f40892cf99be91f3cdd1bd5a421f3de9c
drm/mediatek: Optimize functions which do not need to return

Function mtk_hdmi_aud_set_input always return 0, no need to
keep the return value. Functions mtk_hdmi_aud_enable_packet &
mtk_hdmi_aud_on_off_hw_ncts are the same, these two functions
just call next functions. Maybe it`s a bit better to just call
the inner function.

Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_hdmi.c