Skip to content

Commit 3385375

Browse files
surajk8Andi Shyti
authored andcommitted
drm/i915/ddi: Remove redundant intel_connector NULL check
Remove redundant intel_connector NULL check. Having it here just creates further confusion and also the variable already gets dereferenced before the aforementioned NULL check Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231006072830.581487-1-suraj.kandpal@intel.com
1 parent ae2b1c3 commit 3385375

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/i915/display/intel_ddi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4333,7 +4333,7 @@ static int intel_hdmi_reset_link(struct intel_encoder *encoder,
43334333
u8 config;
43344334
int ret;
43354335

4336-
if (!connector || connector->base.status != connector_status_connected)
4336+
if (connector->base.status != connector_status_connected)
43374337
return 0;
43384338

43394339
ret = drm_modeset_lock(&dev_priv->drm.mode_config.connection_mutex,

0 commit comments

Comments
 (0)