[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200921131023.91694-1-miaoqinglang@huawei.com>
Date: Mon, 21 Sep 2020 21:10:23 +0800
From: Qinglang Miao <miaoqinglang@...wei.com>
To: Jyri Sarha <jsarha@...com>, Tomi Valkeinen <tomi.valkeinen@...com>,
"David Airlie" <airlied@...ux.ie>, Daniel Vetter <daniel@...ll.ch>
CC: <dri-devel@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>,
Qinglang Miao <miaoqinglang@...wei.com>
Subject: [PATCH -next] drm/tidss: simplify the return expression of tidss_pm_runtime_resume()
Simplify the return expression.
Signed-off-by: Qinglang Miao <miaoqinglang@...wei.com>
---
drivers/gpu/drm/tidss/tidss_drv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/tidss/tidss_drv.c b/drivers/gpu/drm/tidss/tidss_drv.c
index 9179ea18f..96568695a 100644
--- a/drivers/gpu/drm/tidss/tidss_drv.c
+++ b/drivers/gpu/drm/tidss/tidss_drv.c
@@ -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)
--
2.23.0
Powered by blists - more mailing lists