drm/tidss: simplify the return expression of tidss_pm_runtime_resume()
Subsystems (3)
PATCH 1/1 drm/tidss: simplify the return expression of tidss_pm_runtime_resume()
Simplify the return expression.
Signed-off-by Qinglang Miao <[email protected]>
--- drivers/gpu/drm/tidss/tidss_drv.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/gpu/drm/tidss/tidss_drv.c +1 -6
@@ -60,15 +60,10 @@ static int __maybe_unused tidss_pm_runtime_suspend(struct device *dev)static int __maybe_unused tidss_pm_runtime_resume (struct device *dev) {struct tidss_device *tidss =dev_get_drvdata (dev); -int r;dev_dbg (dev,"%s\n" , __func__); - r =dispc_runtime_resume (tidss->dispc); -if (r) -return r; - -return 0 ; +return dispc_runtime_resume (tidss->dispc); }static int __maybe_unused tidss_suspend (struct device *dev)
Signature · 1 line
2.23.0