cfg80211: remove unnecessary pointer-of
authorJohannes Berg <johannes.berg@intel.com>
Thu, 15 Sep 2016 08:57:50 +0000 (10:57 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 15 Sep 2016 14:46:20 +0000 (16:46 +0200)
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>
net/wireless/sysfs.c

index e46469b..0082f4b 100644 (file)
@@ -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;
 }