diff options
author | Joan Lledó <jlledom@member.fsf.org> | 2019-11-09 11:46:37 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-11-09 11:46:42 +0100 |
commit | 35648c7b1af994ec1d1037d51682d97530c5aeca (patch) | |
tree | 67d1a99de05c2cf9f7dbfe50b204863b92d7fe4c /pci-arbiter | |
parent | 9cf19f93324f1a7adfc5c386050d21ce6d661203 (diff) | |
download | hurd-35648c7b1af994ec1d1037d51682d97530c5aeca.tar.gz hurd-35648c7b1af994ec1d1037d51682d97530c5aeca.tar.bz2 hurd-35648c7b1af994ec1d1037d51682d97530c5aeca.zip |
pci-arbiter: remove unneeded memset.
* pci-arbiter/pcifs.c (create_fs_tree): Remove all memset() previous to
snprintf() calls.
Diffstat (limited to 'pci-arbiter')
-rw-r--r-- | pci-arbiter/pcifs.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pci-arbiter/pcifs.c b/pci-arbiter/pcifs.c index cc08fad0..aaee7f0b 100644 --- a/pci-arbiter/pcifs.c +++ b/pci-arbiter/pcifs.c @@ -207,7 +207,6 @@ create_fs_tree (struct pcifs * fs) /* We've found a new domain. Add an entry for it */ e_stat = list->stat; e_stat.st_mode &= ~S_IROOT; /* Remove the root mode */ - memset (entry_name, 0, NAME_SIZE); snprintf (entry_name, NAME_SIZE, "%04x", device->domain); err = create_dir_entry (device->domain, -1, -1, -1, -1, entry_name, @@ -225,7 +224,6 @@ create_fs_tree (struct pcifs * fs) if (device->bus != c_bus) { /* We've found a new bus. Add an entry for it */ - memset (entry_name, 0, NAME_SIZE); snprintf (entry_name, NAME_SIZE, "%02x", device->bus); err = create_dir_entry (device->domain, device->bus, -1, -1, -1, @@ -243,7 +241,6 @@ create_fs_tree (struct pcifs * fs) if (device->dev != c_dev) { /* We've found a new dev. Add an entry for it */ - memset (entry_name, 0, NAME_SIZE); snprintf (entry_name, NAME_SIZE, "%02x", device->dev); err = create_dir_entry (device->domain, device->bus, device->dev, -1, @@ -262,7 +259,6 @@ create_fs_tree (struct pcifs * fs) e_stat.st_mode &= ~(S_IROTH | S_IWOTH | S_IXOTH); /* Add func entry */ - memset (entry_name, 0, NAME_SIZE); snprintf (entry_name, NAME_SIZE, "%01u", device->func); err = create_dir_entry (device->domain, device->bus, device->dev, |