diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-09-05 02:34:12 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-09-05 09:39:37 -0400 |
commit | 00a9ac4c014e19fb9ceb70a28406fd962df5b8a7 (patch) | |
tree | 13af0a8c1b559df1a1b0b3d249d2d5e1b63bf982 /net/wireless | |
parent | 0ef24e528f27683620d78c3393b3df73d804828c (diff) |
cfg80211: use list_move_tail instead of list_del/list_add_tail
Using list_move_tail() instead of list_del() + list_add_tail().
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/reg.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 2303ee73b50a..c6e0d467f8bd 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -1932,8 +1932,7 @@ static void restore_regulatory_settings(bool reset_user) | |||
1932 | if (reg_request->initiator != | 1932 | if (reg_request->initiator != |
1933 | NL80211_REGDOM_SET_BY_USER) | 1933 | NL80211_REGDOM_SET_BY_USER) |
1934 | continue; | 1934 | continue; |
1935 | list_del(®_request->list); | 1935 | list_move_tail(®_request->list, &tmp_reg_req_list); |
1936 | list_add_tail(®_request->list, &tmp_reg_req_list); | ||
1937 | } | 1936 | } |
1938 | } | 1937 | } |
1939 | spin_unlock(®_requests_lock); | 1938 | spin_unlock(®_requests_lock); |
@@ -1992,8 +1991,7 @@ static void restore_regulatory_settings(bool reset_user) | |||
1992 | "into the queue\n", | 1991 | "into the queue\n", |
1993 | reg_request->alpha2[0], | 1992 | reg_request->alpha2[0], |
1994 | reg_request->alpha2[1]); | 1993 | reg_request->alpha2[1]); |
1995 | list_del(®_request->list); | 1994 | list_move_tail(®_request->list, ®_requests_list); |
1996 | list_add_tail(®_request->list, ®_requests_list); | ||
1997 | } | 1995 | } |
1998 | spin_unlock(®_requests_lock); | 1996 | spin_unlock(®_requests_lock); |
1999 | 1997 | ||