drm/msm: remove unneeded variable: "rc"
PATCH 1/1 drm/msm: remove unneeded variable: "rc"
remove unneeded variable: "rc".
Signed-off-by Bernard Zhao <[email protected]>
--- drivers/gpu/drm/msm/dp/dp_panel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/msm/dp/dp_panel.c +1 -2
@@ -409,7 +409,6 @@ int dp_panel_timing_cfg(struct dp_panel *dp_panel)int dp_panel_init_panel_info (struct dp_panel *dp_panel) { -int rc =0 ;struct drm_display_mode *drm_mode; drm_mode = &dp_panel->dp_mode.drm_mode;
@@ -436,7 +435,7 @@ int dp_panel_init_panel_info(struct dp_panel *dp_panel) min_t(u32, dp_panel->dp_mode.bpp, 30));DRM_DEBUG_DP ("updated bpp = %d\n" , dp_panel->dp_mode.bpp); -return rc; +return 0 ; }struct dp_panel *dp_panel_get (struct dp_panel_in *in)
Signature · 1 line
2.29.0
Quoted 4 lines · Bernard Zhao
remove unneeded variable: "rc".
Signed-off-by Bernard Zhao <[email protected]>
Reviewed-by Guenter Roeck <[email protected]>
Quoted 29 lines
--- drivers/gpu/drm/msm/dp/dp_panel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/msm/dp/dp_panel.c +1
-3@@ -409,7 +409,6 @@ int dp_panel_timing_cfg(struct dp_panel *dp_panel)int dp_panel_init_panel_info (struct dp_panel *dp_panel) { -int rc =0 ;struct drm_display_mode *drm_mode; drm_mode = &dp_panel->dp_mode.drm_mode;@@ -436,7 +435,7 @@ int dp_panel_init_panel_info(struct dp_panel *dp_panel) min_t(u32, dp_panel->dp_mode.bpp, 30));DRM_DEBUG_DP ("updated bpp = %d\n" , dp_panel->dp_mode.bpp); -return rc; +return 0 ; }struct dp_panel *dp_panel_get (struct dp_panel_in *in) --2.29.0
Quoting Bernard Zhao (2021-02-02 04:32:03)
Quoted 4 lines
remove unneeded variable: "rc".
Signed-off-by Bernard Zhao <[email protected]>---
Reviewed-by Stephen Boyd <[email protected]>
This patch was applied to qcom/linux.git (refs/heads/for-next):
Hello:
This patch was applied to qcom/linux.git (refs/heads/for-next):
Quoted 6 lines · On Tue, 2 Feb 2021 04:32:03 -0800 you wrote:
remove unneeded variable: "rc".
Signed-off-by Bernard Zhao <[email protected]>--- drivers/gpu/drm/msm/dp/dp_panel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Here is the summary with links:
- drm/msm: remove unneeded variable: "rc"
https://git.kernel.org/qcom/c/5ca6d0268df8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html