drm/msm/dsi_pll_10nm: Remove impossible check
authorSean Paul <seanpaul@chromium.org>
Mon, 17 Jun 2019 20:12:50 +0000 (16:12 -0400)
committerSean Paul <seanpaul@chromium.org>
Thu, 20 Jun 2019 18:42:03 +0000 (14:42 -0400)
While I'm in here, cut this out, pdev can't be NULL

Reviewed-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190617201301.133275-2-sean@poorly.run
drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c

index 618b49838293180356424de7b17c2eb1f4b6087e..8f6100db90ed498ef730bc852b8b6185c3fddbd4 100644 (file)
@@ -818,9 +818,6 @@ struct msm_dsi_pll *msm_dsi_pll_10nm_init(struct platform_device *pdev, int id)
        struct msm_dsi_pll *pll;
        int ret;
 
-       if (!pdev)
-               return ERR_PTR(-ENODEV);
-
        pll_10nm = devm_kzalloc(&pdev->dev, sizeof(*pll_10nm), GFP_KERNEL);
        if (!pll_10nm)
                return ERR_PTR(-ENOMEM);