diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-05-29 11:26:24 +0530 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2014-06-02 02:07:13 +0900 |
commit | 97f98a3b941f58e91a301e3138cdee60251590bc (patch) | |
tree | 06adbf16ee3c373498673cd30303aef17695a2a1 | |
parent | 972145c741df9a259f3cdc89c974b6e1bfadcf6e (diff) | |
download | talos-op-linux-97f98a3b941f58e91a301e3138cdee60251590bc.tar.gz talos-op-linux-97f98a3b941f58e91a301e3138cdee60251590bc.zip |
drm/exynos: Use PTR_ERR_OR_ZERO in exynos_dp_core.c
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>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_dp_core.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_dp_core.c b/drivers/gpu/drm/exynos/exynos_dp_core.c index ff63901e14c7..8b67f4141e78 100644 --- 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)) { |