summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2016-09-15 10:57:50 +0200
committerJohannes Berg <johannes.berg@intel.com>2016-09-15 16:46:20 +0200
commitec53c832ee90b86414ca243d0e6fdbb9cf5e413b (patch)
tree3f34c425f7c16e1d5d140081c2d9af284f76614b /net/wireless
parente8a24cd4b87247beedb1addc7b683422092047e5 (diff)
downloadop-kernel-dev-ec53c832ee90b86414ca243d0e6fdbb9cf5e413b.zip
op-kernel-dev-ec53c832ee90b86414ca243d0e6fdbb9cf5e413b.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/sysfs.c b/net/wireless/sysfs.c
index e46469b..0082f4b 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;
}
OpenPOWER on IntegriCloud