Skip to content

Commit

Permalink
cfg80211: remove unnecessary pointer-of
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg committed Sep 15, 2016
1 parent e8a24cd commit ec53c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/wireless/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ec53c83

Please sign in to comment.