projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
972145c
)
drm/exynos: Use PTR_ERR_OR_ZERO in exynos_dp_core.c
author
Sachin Kamat
<sachin.kamat@linaro.org>
Thu, 29 May 2014 05:56:24 +0000
(11:26 +0530)
committer
Inki Dae
<daeinki@gmail.com>
Sun, 1 Jun 2014 17:07:13 +0000
(
02:07
+0900)
PTR_ERR_OR_ZERO simplifies the code.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_dp_core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/exynos/exynos_dp_core.c
b/drivers/gpu/drm/exynos/exynos_dp_core.c
index ff63901e14c799441c134bf58451acd5de84631a..8b67f4141e7828539f48978e1ae4e9efea4cc6e8 100644
(file)
--- a/
drivers/gpu/drm/exynos/exynos_dp_core.c
+++ b/
drivers/gpu/drm/exynos/exynos_dp_core.c
@@
-1168,10
+1168,7
@@
static int exynos_dp_dt_parse_phydata(struct exynos_dp_device *dp)
dp_phy_node = of_find_node_by_name(dp_phy_node, "dptx-phy");
if (!dp_phy_node) {
dp->phy = devm_phy_get(dp->dev, "dp");
- if (IS_ERR(dp->phy))
- return PTR_ERR(dp->phy);
- else
- return 0;
+ return PTR_ERR_OR_ZERO(dp->phy);
}
if (of_property_read_u32(dp_phy_node, "reg", &phy_base)) {