summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2024-10-28 19:40:46 +0200
committerKrzysztof Wilczyński <kwilczynski@kernel.org>2025-01-15 03:54:44 +0000
commit2d54d23c604dc117a2bd99f90353ab761e209384 (patch)
treeed70e8cf1e44363d30010cf559d129b4a4e736bc
parentb6e5c46d8330ce818d8056cc5b8447d210caf196 (diff)
PCI/sysfs: Remove unnecessary zero in initializer
Providing empty initializer for an array is enough to set its elements to zero. Thus, remove the redundant 0 from the initializer. Link: https://lore.kernel.org/r/20241028174046.1736-4-ilpo.jarvinen@linux.intel.com Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
-rw-r--r--drivers/pci/pci-sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index 40bc59d33e6b..a88c65441b71 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -1463,7 +1463,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;