RE: [PATCH v2] driver : edac : Fix warning using plain integer as NULL

From: Zhuo, Qiuxu
Date: Tue Nov 28 2023 - 02:47:58 EST


> From: Abhinav Singh <singhabhinav9051571833@xxxxxxxxx>
> ...
> diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c index
> 08bf20c60111..4c76d0f180ec 100644
> --- a/drivers/edac/i7core_edac.c
> +++ b/drivers/edac/i7core_edac.c
> @@ -376,7 +376,7 @@ static const struct pci_id_table pci_dev_table[] = {
> PCI_ID_TABLE_ENTRY(pci_dev_descr_i7core_nehalem),
> PCI_ID_TABLE_ENTRY(pci_dev_descr_lynnfield),
> PCI_ID_TABLE_ENTRY(pci_dev_descr_i7core_westmere),
> - {NULL,} /* 0 terminated list. */
> + {NULL,} /* NULL terminated list. */
> };
>
> /*
> @@ -385,7 +385,7 @@ static const struct pci_id_table pci_dev_table[] =
> { static const struct pci_device_id i7core_pci_tbl[] = {
> {PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_INTEL_X58_HUB_MGMT)},
> {PCI_DEVICE(PCI_VENDOR_ID_INTEL,
> PCI_DEVICE_ID_INTEL_LYNNFIELD_QPI_LINK0)},
> - {0,} /* 0 terminated list. */
> + {0,} /* NULL terminated list. */
> };

The updated comment (NULL pointer) mismatches the code (zero value).