projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8a24cd
)
cfg80211: remove unnecessary pointer-of
author
Johannes Berg
<johannes.berg@intel.com>
Thu, 15 Sep 2016 08:57:50 +0000
(10:57 +0200)
committer
Johannes 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
patch
|
blob
|
blame
|
history
diff --git
a/net/wireless/sysfs.c
b/net/wireless/sysfs.c
index e46469bc130f99ec4e98f549a0ed5289107aa4d3..0082f4b01795a1c80cbf453e7767893a1caf4dd5 100644
(file)
--- a/
net/wireless/sysfs.c
+++ b/
net/wireless/sysfs.c
@@
-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;
}