diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-08-28 13:03:36 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-09-26 07:21:38 -0400 |
commit | c5dc164df6187e845f1a7c0542f5106c74ff5a92 (patch) | |
tree | 6f2ce5afa0ed7b288004925be21b3d053748a2a2 /net/mac80211 | |
parent | c7c71066c27f2bafb2ce3b10c407c0285f56acfa (diff) |
mac80211: use ERR_CAST()
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>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/key.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/key.c b/net/mac80211/key.c index 620677e897bd..3e51dd7d98b3 100644 --- a/net/mac80211/key.c +++ b/net/mac80211/key.c | |||
@@ -879,7 +879,7 @@ ieee80211_gtk_rekey_add(struct ieee80211_vif *vif, | |||
879 | keyconf->keylen, keyconf->key, | 879 | keyconf->keylen, keyconf->key, |
880 | 0, NULL); | 880 | 0, NULL); |
881 | if (IS_ERR(key)) | 881 | if (IS_ERR(key)) |
882 | return ERR_PTR(PTR_ERR(key)); | 882 | return ERR_CAST(key); |
883 | 883 | ||
884 | if (sdata->u.mgd.mfp != IEEE80211_MFP_DISABLED) | 884 | if (sdata->u.mgd.mfp != IEEE80211_MFP_DISABLED) |
885 | key->conf.flags |= IEEE80211_KEY_FLAG_RX_MGMT; | 885 | key->conf.flags |= IEEE80211_KEY_FLAG_RX_MGMT; |