drm/msm: use IS_ERR() to check msm_ioremap() return
authorFabian Frederick <fabf@skynet.be>
Mon, 4 May 2015 17:03:54 +0000 (19:03 +0200)
committerRob Clark <robdclark@gmail.com>
Thu, 11 Jun 2015 17:11:04 +0000 (13:11 -0400)
msm_ioremap() never returns NULL. There's no need for IS_ERR_OR_NULL()

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/dsi/dsi_phy.c

index f0cea89273883ce8116f7f383c078d56a4b91e46..61af19312711611fd9233cdfdc980b8b8dbbac6a 100644 (file)
@@ -300,12 +300,12 @@ struct msm_dsi_phy *msm_dsi_phy_init(struct platform_device *pdev,
                return NULL;
 
        phy->base = msm_ioremap(pdev, "dsi_phy", "DSI_PHY");
-       if (IS_ERR_OR_NULL(phy->base)) {
+       if (IS_ERR(phy->base)) {
                pr_err("%s: failed to map phy base\n", __func__);
                return NULL;
        }
        phy->reg_base = msm_ioremap(pdev, "dsi_phy_regulator", "DSI_PHY_REG");
-       if (IS_ERR_OR_NULL(phy->reg_base)) {
+       if (IS_ERR(phy->reg_base)) {
                pr_err("%s: failed to map phy regulator base\n", __func__);
                return NULL;
        }