]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
platform/x86: intel_pmc_core: Remove unnecessary assignments
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 18 Dec 2019 12:53:31 +0000 (14:53 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 20 Dec 2019 17:02:59 +0000 (19:02 +0200)
There is no need to assign NULL or 0 in the static structures explicitly.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_pmc_core.c

index f7256168bb8f0d8950776c69fa0a5d3aa8a41eeb..24bfd9b637ffd8106410aa914687ebe1e39f705f 100644 (file)
@@ -822,8 +822,8 @@ static const struct x86_cpu_id intel_pmc_core_ids[] = {
 MODULE_DEVICE_TABLE(x86cpu, intel_pmc_core_ids);
 
 static const struct pci_device_id pmc_pci_ids[] = {
-       { PCI_VDEVICE(INTEL, SPT_PMC_PCI_DEVICE_ID), 0},
-       { 0, }
+       { PCI_VDEVICE(INTEL, SPT_PMC_PCI_DEVICE_ID) },
+       { }
 };
 
 /*