projects
/
sdk
/
emulator
/
emulator-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7c7106
)
mac80211: use ERR_CAST()
author
Johannes Berg
<johannes.berg@intel.com>
Wed, 28 Aug 2013 17:03:36 +0000
(19:03 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Thu, 26 Sep 2013 11:21:38 +0000
(13:21 +0200)
No need for ERR_PTR(PTR_ERR()) since there's ERR_CAST, use it.
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/key.c
patch
|
blob
|
history
diff --git
a/net/mac80211/key.c
b/net/mac80211/key.c
index
620677e
..
3e51dd7
100644
(file)
--- a/
net/mac80211/key.c
+++ b/
net/mac80211/key.c
@@
-879,7
+879,7
@@
ieee80211_gtk_rekey_add(struct ieee80211_vif *vif,
keyconf->keylen, keyconf->key,
0, NULL);
if (IS_ERR(key))
- return ERR_
PTR(PTR_ERR(key)
);
+ return ERR_
CAST(key
);
if (sdata->u.mgd.mfp != IEEE80211_MFP_DISABLED)
key->conf.flags |= IEEE80211_KEY_FLAG_RX_MGMT;