Skip to content

Commit ec53c83

Browse files
committed
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>
1 parent e8a24cd commit ec53c83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/wireless/sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static ssize_t addresses_show(struct device *dev,
5757
return sprintf(buf, "%pM\n", wiphy->perm_addr);
5858

5959
for (i = 0; i < wiphy->n_addresses; i++)
60-
buf += sprintf(buf, "%pM\n", &wiphy->addresses[i].addr);
60+
buf += sprintf(buf, "%pM\n", wiphy->addresses[i].addr);
6161

6262
return buf - start;
6363
}

0 commit comments

Comments
 (0)