mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-26 18:43:33 -05:00
cfg80211: remove unnecessary pointer-of
For an array, there's no need to use &array, so just use the plain wiphy->addresses[i].addr here to silence smatch. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
e8a24cd4b8
commit
ec53c832ee
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ static ssize_t addresses_show(struct device *dev,
|
|||
return sprintf(buf, "%pM\n", wiphy->perm_addr);
|
||||
|
||||
for (i = 0; i < wiphy->n_addresses; i++)
|
||||
buf += sprintf(buf, "%pM\n", &wiphy->addresses[i].addr);
|
||||
buf += sprintf(buf, "%pM\n", wiphy->addresses[i].addr);
|
||||
|
||||
return buf - start;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue