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 e46469bc130f99ec4e98f549a0ed5289107aa4d3..0082f4b01795a1c80cbf453e7767893a1caf4dd5 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;
 }