drm/msm/dp: Simplify dp_debug_init() and dp_debug_get()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 22 Dec 2021 19:33:47 +0000 (20:33 +0100)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 18 Feb 2022 15:32:57 +0000 (18:32 +0300)
commit31e0889daa4b8fcfd785a71b5f323015d67ad037
tree8ee8d97abcf3f035c7a5f5935d2a6cb98eee51d3
parent74222b7c4214c9bfb915508ad4691d9127555ef5
drm/msm/dp: Simplify dp_debug_init() and dp_debug_get()

dp_debug_init() always returns 0. So, make it a void function and simplify
the only caller accordingly.

While at it remove a useless 'rc' initialization in dp_debug_get()

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/dc2d6f535379dd38a5e3f9ba502f1f2b3d1f56b7.1640201523.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/dp/dp_debug.c