diff options
author | Qinglang Miao <miaoqinglang@huawei.com> | 2020-09-21 16:10:19 +0300 |
---|---|---|
committer | Steven Price <steven.price@arm.com> | 2020-10-01 15:58:30 +0300 |
commit | 3c4641d4e75618fa1b5501b9ae9c19f765d75725 (patch) | |
tree | ad9804558af83e324926f6aff5ac0dda7ddff417 | |
parent | 291e8cdd6bc57658035239315d27f3f971ec062b (diff) | |
download | linux-3c4641d4e75618fa1b5501b9ae9c19f765d75725.tar.xz |
drm/panfrost: simplify the return expression of cz_ih_hw_init()
Simplify the return expression.
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200921131019.91558-1-miaoqinglang@huawei.com
-rw-r--r-- | drivers/gpu/drm/panfrost/panfrost_device.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/panfrost/panfrost_device.c b/drivers/gpu/drm/panfrost/panfrost_device.c index e6896733838a..ea8d31863c50 100644 --- a/drivers/gpu/drm/panfrost/panfrost_device.c +++ b/drivers/gpu/drm/panfrost/panfrost_device.c @@ -18,19 +18,13 @@ static int panfrost_reset_init(struct panfrost_device *pfdev) { - int err; - pfdev->rstc = devm_reset_control_array_get(pfdev->dev, false, true); if (IS_ERR(pfdev->rstc)) { dev_err(pfdev->dev, "get reset failed %ld\n", PTR_ERR(pfdev->rstc)); return PTR_ERR(pfdev->rstc); } - err = reset_control_deassert(pfdev->rstc); - if (err) - return err; - - return 0; + return reset_control_deassert(pfdev->rstc); } static void panfrost_reset_fini(struct panfrost_device *pfdev) |