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>
This commit is contained in:
Ilpo Järvinen 2024-10-28 19:40:46 +02:00 committed by Krzysztof Wilczyński
parent b6e5c46d83
commit 2d54d23c60
No known key found for this signature in database
GPG Key ID: 7C64768D3DE334E7
1 changed files with 1 additions and 1 deletions

View File

@ -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;