Re: [PATCH] drm/mediatek: Optimize functions which do not need to return

2020-11-07 Thread Chun-Kuang Hu
Hi, Bernard: Chun-Kuang Hu 於 2020年10月17日 週六 上午10:50寫道: > > Bernard Zhao 於 2020年10月13日 週二 下午4:55寫道: > > > > 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

Re: [PATCH] drm/mediatek: Optimize functions which do not need to return

2020-10-16 Thread Chun-Kuang Hu
Bernard Zhao 於 2020年10月13日 週二 下午4:55寫道: > > 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

[PATCH] drm/mediatek: Optimize functions which do not need to return

2020-10-14 Thread Bernard Zhao
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