summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2021-02-08 15:43:49 -0500
committerZack Rusin <zackr@vmware.com>2021-02-10 14:20:04 -0500
commitb1afb87a351ed7af76a7d110b0ec735c9a2518b9 (patch)
treec77fc375facf7bd2143d8a9eb869b9670796105a /drivers
parente3dc5523841f28298b5a65d9091d5a75db2b61fb (diff)
drm/vmwgfx: Remove pointless code
There's no need to check for the presence of the hotplug property just to return because this is the end of the function so we're returning either way. Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: Martin Krastev <krastevm@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210209161700.335611-2-zackr@vmware.com
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_kms.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
index 05151134da28..b2b7a0d3e008 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
@@ -1779,10 +1779,6 @@ vmw_kms_create_hotplug_mode_update_property(struct vmw_private *dev_priv)
drm_property_create_range(&dev_priv->drm,
DRM_MODE_PROP_IMMUTABLE,
"hotplug_mode_update", 0, 1);
-
- if (!dev_priv->hotplug_mode_update_property)
- return;
-
}
int vmw_kms_init(struct vmw_private *dev_priv)