summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/display/intel_acpi.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2023-10-12 15:24:37 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2023-10-16 19:09:22 +0300
commiteebc1525bacbd4faa46a99c37329414fb17cfa51 (patch)
tree58ec012bb2427548ebeb70f37c91aa55cbab1684 /drivers/gpu/drm/i915/display/intel_acpi.c
parent02c8d561dbbf4258c3314ddb85fe609990b61316 (diff)
downloadlinux-eebc1525bacbd4faa46a99c37329414fb17cfa51.tar.xz
drm/i915/display: Clean up zero initializers
Just use a simple {} to zero initialize arrays/structs instead of the hodgepodge of stuff we are using currently. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231012122442.15718-2-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_acpi.c')
-rw-r--r--drivers/gpu/drm/i915/display/intel_acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_acpi.c b/drivers/gpu/drm/i915/display/intel_acpi.c
index 9df78e7caa2b..0aa3999374e2 100644
--- a/drivers/gpu/drm/i915/display/intel_acpi.c
+++ b/drivers/gpu/drm/i915/display/intel_acpi.c
@@ -153,7 +153,7 @@ static acpi_handle intel_dsm_pci_probe(struct pci_dev *pdev)
static bool intel_dsm_detect(void)
{
acpi_handle dhandle = NULL;
- char acpi_method_name[255] = { 0 };
+ char acpi_method_name[255] = {};
struct acpi_buffer buffer = {sizeof(acpi_method_name), acpi_method_name};
struct pci_dev *pdev = NULL;
int vga_count = 0;