]> Git Repo - linux.git/commitdiff
drm/i915/pci: Clean up zero initializers
authorVille Syrjälä <[email protected]>
Thu, 12 Oct 2023 12:24:40 +0000 (15:24 +0300)
committerVille Syrjälä <[email protected]>
Mon, 16 Oct 2023 16:10:10 +0000 (19:10 +0300)
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ä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Jani Nikula <[email protected]>
drivers/gpu/drm/i915/i915_pci.c

index df7c261410f79cafca22ed423d1fc01899c1a9a9..454467cfa52b9d465a2d7cf11d2059f888cbe8a9 100644 (file)
@@ -923,7 +923,7 @@ static const struct pci_device_id pciidlist[] = {
        INTEL_DG2_IDS(&dg2_info),
        INTEL_ATS_M_IDS(&ats_m_info),
        INTEL_MTL_IDS(&mtl_info),
-       {0, 0, 0}
+       {}
 };
 MODULE_DEVICE_TABLE(pci, pciidlist);
 
This page took 0.060951 seconds and 4 git commands to generate.