Skip to content

Commit 2d54d23

Browse files
ij-intelkwilczynski
authored andcommitted
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>
1 parent b6e5c46 commit 2d54d23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pci/pci-sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ static ssize_t reset_method_store(struct device *dev,
14631463
struct pci_dev *pdev = to_pci_dev(dev);
14641464
char *tmp_options, *name;
14651465
int m, n;
1466-
u8 reset_methods[PCI_NUM_RESET_METHODS] = { 0 };
1466+
u8 reset_methods[PCI_NUM_RESET_METHODS] = {};
14671467

14681468
if (sysfs_streq(buf, "")) {
14691469
pdev->reset_methods[0] = 0;

0 commit comments

Comments
 (0)