]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915/ddi: Remove redundant intel_connector NULL check
authorSuraj Kandpal <suraj.kandpal@intel.com>
Fri, 6 Oct 2023 07:28:31 +0000 (12:58 +0530)
committerAndi Shyti <andi.shyti@linux.intel.com>
Sat, 7 Oct 2023 06:08:49 +0000 (08:08 +0200)
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
drivers/gpu/drm/i915/display/intel_ddi.c

index 4668de45d6feb6971772b44c74a6332e35be9ada..9151d5add9605f269aed3a66fdae32d8905abaa6 100644 (file)
@@ -4333,7 +4333,7 @@ static int intel_hdmi_reset_link(struct intel_encoder *encoder,
        u8 config;
        int ret;
 
-       if (!connector || connector->base.status != connector_status_connected)
+       if (connector->base.status != connector_status_connected)
                return 0;
 
        ret = drm_modeset_lock(&dev_priv->drm.mode_config.connection_mutex,