drm/msm/dsi_pll_10nm: Remove impossible check [Linux 5.3]

This Linux kernel change "drm/msm/dsi_pll_10nm: Remove impossible check" is included in the Linux 5.3 release. This change is authored by Sean Paul <seanpaul [at] chromium.org> on Mon Jun 17 16:12:50 2019 -0400. The commit for this change in Linux stable tree is 8b3c087 (patch).

drm/msm/dsi_pll_10nm: Remove impossible check

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

There are 3 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c b/drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c
index 618b498..8f6100d 100644
--- a/drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c
+++ b/drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c
@@ -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);

Leave a Reply

Your email address will not be published. Required fields are marked *