diff options
author | Johannes Berg <johannes.berg@intel.com> | 2016-09-15 10:57:50 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-09-15 16:46:20 +0200 |
commit | ec53c832ee90b86414ca243d0e6fdbb9cf5e413b (patch) | |
tree | 3f34c425f7c16e1d5d140081c2d9af284f76614b /net/wireless | |
parent | e8a24cd4b87247beedb1addc7b683422092047e5 (diff) | |
download | linux-ec53c832ee90b86414ca243d0e6fdbb9cf5e413b.tar.gz linux-ec53c832ee90b86414ca243d0e6fdbb9cf5e413b.tar.bz2 linux-ec53c832ee90b86414ca243d0e6fdbb9cf5e413b.zip |
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>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/sysfs.c b/net/wireless/sysfs.c index e46469bc130f..0082f4b01795 100644 --- a/net/wireless/sysfs.c +++ b/net/wireless/sysfs.c @@ -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; } |