projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4325f6c
)
mac80211: write memcpy differently for smatch
author
Johannes Berg
<johannes.berg@intel.com>
Mon, 6 May 2013 19:09:46 +0000
(21:09 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Thu, 16 May 2013 20:39:42 +0000
(22:39 +0200)
There's no real difference between *array and array, but
the former confuses smatch so write it differently. The
generated code is exactly the same.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mac80211/cfg.c
b/net/mac80211/cfg.c
index 1f51bdfe574a710b69e0edfa8bb1dd9de4970ee6..66989458f5ff4fde2456ce08190a4f8c7142284b 100644
(file)
--- a/
net/mac80211/cfg.c
+++ b/
net/mac80211/cfg.c
@@
-739,7
+739,7
@@
static void ieee80211_get_et_strings(struct wiphy *wiphy,
if (sset == ETH_SS_STATS) {
sz_sta_stats = sizeof(ieee80211_gstrings_sta_stats);
- memcpy(data,
*
ieee80211_gstrings_sta_stats, sz_sta_stats);
+ memcpy(data, ieee80211_gstrings_sta_stats, sz_sta_stats);
}
drv_get_et_strings(sdata, sset, &(data[sz_sta_stats]));
}