Message ID | 20241028174046.1736-4-ilpo.jarvinen@linux.intel.com (mailing list archive) |
---|---|
State | Under Review |
Delegated to: | Krzysztof Wilczyński |
Headers | show |
Series | PCI/sysfs: move to sysfs funcs to pci-sysfs.c & do small tweaks | expand |
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index 74e4e0917898..19da2f8e98e4 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c @@ -1433,7 +1433,7 @@ static ssize_t reset_method_store(struct device *dev, struct pci_dev *pdev = to_pci_dev(dev); char *tmp_options, *name; int m, n; - u8 reset_methods[PCI_NUM_RESET_METHODS] = { 0 }; + u8 reset_methods[PCI_NUM_RESET_METHODS] = {}; if (sysfs_streq(buf, "")) { pdev->reset_methods[0] = 0;
Providing empty initializer for an array is enough to set its elements to zero. Thus, remove the redundant 0 from the initializer. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> --- drivers/pci/pci-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)