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
parentmac80211: allow driver to handle packet-loss mechanism (diff)
downloadlinux-ec53c832ee90b86414ca243d0e6fdbb9cf5e413b.tar.xz
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.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;
}