drm/msm/dp/dp_display: Remove unused variable 'hpd'
authorLee Jones <lee.jones@linaro.org>
Wed, 3 Mar 2021 13:42:29 +0000 (13:42 +0000)
committerRob Clark <robdclark@chromium.org>
Wed, 23 Jun 2021 14:33:53 +0000 (07:33 -0700)
Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/msm/dp/dp_display.c: In function ‘dp_display_usbpd_attention_cb’:
 drivers/gpu/drm/msm/dp/dp_display.c:496:19: warning: variable ‘hpd’ set but not used [-Wunused-but-set-variable]

Cc: Rob Clark <robdclark@gmail.com>
Cc: Sean Paul <sean@poorly.run>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Kuogee Hsieh <khsieh@codeaurora.org>
Cc: linux-arm-msm@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: freedreno@lists.freedesktop.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210303134319.3160762-4-lee.jones@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/dp/dp_display.c

index 1b051ee..f207973 100644 (file)
@@ -503,7 +503,6 @@ static int dp_display_usbpd_attention_cb(struct device *dev)
        int rc = 0;
        u32 sink_request;
        struct dp_display_private *dp;
-       struct dp_usbpd *hpd;
 
        if (!dev) {
                DRM_ERROR("invalid dev\n");
@@ -517,8 +516,6 @@ static int dp_display_usbpd_attention_cb(struct device *dev)
                return -ENODEV;
        }
 
-       hpd = dp->usbpd;
-
        /* check for any test request issued by sink */
        rc = dp_link_process_request(dp->link);
        if (!rc) {