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/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]>
1 parent b6e5c46 commit 2d54d23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)