drm/i915/display: pre-initialize some values in probe_gmdid_display()
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 1 Jun 2023 09:03:38 +0000 (12:03 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Tue, 8 Aug 2023 10:45:56 +0000 (13:45 +0300)
commit757b90bbfa14191cbb8e5f15e313174d2100c38b
treedb23c52dcda591e4df7b5013c065942b5b651c2b
parent2aa01e4ddea3f5ed5790fca22bbf180339283fbf
drm/i915/display: pre-initialize some values in probe_gmdid_display()

When intel_display_device_probe() (and, subsequently,
probe_gmdid_display()) returns, the caller expects ver, rel and step
to be initialized.  Since there's no way to check that there was a
failure and no_display was returned without some further refactoring,
pre-initiliaze all these values to zero to keep it simple and safe.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230601090338.80284-1-luciano.coelho@intel.com
drivers/gpu/drm/i915/display/intel_display_device.c