Skip to content

Commit 7620bdf

Browse files
Changcheng Dengrobclark
authored andcommitted
drm/msm/dp: remove unneeded variable
Remove unneeded variable used to store return value. Reported-by: Zeal Robot <[email protected]> Signed-off-by: Changcheng Deng <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Rob Clark <[email protected]>
1 parent f3d5d7c commit 7620bdf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/msm/dp/dp_display.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,11 @@ static int dp_display_usbpd_configure_cb(struct device *dev)
416416

417417
static int dp_display_usbpd_disconnect_cb(struct device *dev)
418418
{
419-
int rc = 0;
420419
struct dp_display_private *dp = dev_get_dp_display_private(dev);
421420

422421
dp_add_event(dp, EV_USER_NOTIFICATION, false, 0);
423422

424-
return rc;
423+
return 0;
425424
}
426425

427426
static void dp_display_handle_video_request(struct dp_display_private *dp)

0 commit comments

Comments
 (0)