projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
291e8cd
)
drm/panfrost: simplify the return expression of cz_ih_hw_init()
author
Qinglang Miao
<miaoqinglang@huawei.com>
Mon, 21 Sep 2020 13:10:19 +0000
(21:10 +0800)
committer
Steven Price
<steven.price@arm.com>
Thu, 1 Oct 2020 12:58:30 +0000
(13:58 +0100)
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
drivers/gpu/drm/panfrost/panfrost_device.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/panfrost/panfrost_device.c
b/drivers/gpu/drm/panfrost/panfrost_device.c
index e6896733838ab42b5fe4c28fab12b061ccf96eb5..ea8d31863c50e98a1f6fdd09425c90bcdef39f8d 100644
(file)
--- 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)