projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd0fcdf
)
drm/mediatek: Remove the unneeded result
author
ye xingchen
<ye.xingchen@zte.com.cn>
Thu, 25 Aug 2022 07:23:35 +0000
(07:23 +0000)
committer
Chun-Kuang Hu
<chunkuang.hu@kernel.org>
Thu, 25 Aug 2022 23:34:49 +0000
(07:34 +0800)
Return the value drm_mode_config_helper_suspend() directly instead of
storing it in another redundant variable.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Link:
https://patchwork.kernel.org/project/linux-mediatek/patch/20220825072335.228921-1-ye.xingchen@zte.com.cn/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
index 0e4c77724b0550b5352cd33f0857e206f7a18fa8..92515815c81e90ddf26b6c015f095101f42fcd2f 100644
(file)
--- a/
drivers/gpu/drm/mediatek/mtk_drm_drv.c
+++ b/
drivers/gpu/drm/mediatek/mtk_drm_drv.c
@@
-833,11
+833,8
@@
static int mtk_drm_sys_prepare(struct device *dev)
{
struct mtk_drm_private *private = dev_get_drvdata(dev);
struct drm_device *drm = private->drm;
- int ret;
-
- ret = drm_mode_config_helper_suspend(drm);
- return
ret
;
+ return
drm_mode_config_helper_suspend(drm)
;
}
static void mtk_drm_sys_complete(struct device *dev)