Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec53c832 authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent e8a24cd4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}