]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/edid: drop extra local var
authorJani Nikula <jani.nikula@intel.com>
Mon, 11 Apr 2022 14:00:33 +0000 (17:00 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 14 Apr 2022 13:51:55 +0000 (16:51 +0300)
We don't need override as a variable for anything.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/4d249173b34758e1d6c4a74eb98518d180f0a8ae.1649685475.git.jani.nikula@intel.com
drivers/gpu/drm/drm_edid.c

index 202b54f955762120306f517784cce8d8cf17a0cb..c50b2768d5d136e3d2eaf10a6d9da66cbf6ae93d 100644 (file)
@@ -2102,11 +2102,11 @@ struct edid *drm_do_get_edid(struct drm_connector *connector,
 {
        enum edid_block_status status;
        int j, invalid_blocks = 0;
-       struct edid *edid, *new, *override;
+       struct edid *edid, *new;
 
-       override = drm_get_override_edid(connector);
-       if (override)
-               return override;
+       edid = drm_get_override_edid(connector);
+       if (edid)
+               return edid;
 
        edid = kmalloc(EDID_LENGTH, GFP_KERNEL);
        if (!edid)