summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2016-09-15 11:57:50 +0300
committerJohannes Berg <johannes.berg@intel.com>2016-09-15 17:46:20 +0300
commitec53c832ee90b86414ca243d0e6fdbb9cf5e413b (patch)
tree3f34c425f7c16e1d5d140081c2d9af284f76614b
parente8a24cd4b87247beedb1addc7b683422092047e5 (diff)
downloadlinux-ec53c832ee90b86414ca243d0e6fdbb9cf5e413b.tar.xz
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>
-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 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;
}