[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211215085554.444351-1-deng.changcheng@zte.com.cn>
Date: Wed, 15 Dec 2021 08:55:54 +0000
From: cgel.zte@...il.com
To: robdclark@...il.com
Cc: sean@...rly.run, quic_abhinavk@...cinc.com, airlied@...ux.ie,
daniel@...ll.ch, swboyd@...omium.org, quic_khsieh@...cinc.com,
dmitry.baryshkov@...aro.org, bjorn.andersson@...aro.org,
linux@...ck-us.net, linux-arm-msm@...r.kernel.org,
dri-devel@...ts.freedesktop.org, freedreno@...ts.freedesktop.org,
linux-kernel@...r.kernel.org,
Changcheng Deng <deng.changcheng@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH] drm/msm/dp: remove unneeded variable
From: Changcheng Deng <deng.changcheng@....com.cn>
Remove unneeded variable used to store return value.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: Changcheng Deng <deng.changcheng@....com.cn>
---
drivers/gpu/drm/msm/dp/dp_display.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c
index 8d9c19dbf33e..7cc4d21f2091 100644
--- a/drivers/gpu/drm/msm/dp/dp_display.c
+++ b/drivers/gpu/drm/msm/dp/dp_display.c
@@ -416,12 +416,11 @@ static int dp_display_usbpd_configure_cb(struct device *dev)
static int dp_display_usbpd_disconnect_cb(struct device *dev)
{
- int rc = 0;
struct dp_display_private *dp = dev_get_dp_display_private(dev);
dp_add_event(dp, EV_USER_NOTIFICATION, false, 0);
- return rc;
+ return 0;
}
static void dp_display_handle_video_request(struct dp_display_private *dp)
--
2.25.1
Powered by blists - more mailing lists