]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2ceb66d05bc110dfcfdf6f7efccf71adac4a5f03
tree8ee8d97abcf3f035c7a5f5935d2a6cb98eee51d3
parent3c56083e63f85e4ff012ccfd72bb35dcff6b7263
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