From: Andreea-Cristina Bernat Date: Sun, 17 Aug 2014 13:18:02 +0000 (+0300) Subject: mac80211: Replace rcu_dereference() with rcu_access_pointer() X-Git-Tag: fixes-against-v3.18-rc2~81^2~133^2~4^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2688eba9d5ba2a35ac8e5efa2e228f105f0a379f;p=pandora-kernel.git mac80211: Replace rcu_dereference() with rcu_access_pointer() The "rcu_dereference()" calls are used directly in conditions. Since their return values are never dereferenced it is recommended to use "rcu_access_pointer()" instead of "rcu_dereference()". Therefore, this patch makes the replacements. The following Coccinelle semantic patch was used: @@ @@ ( if( (<+... - rcu_dereference + rcu_access_pointer (...) ...+>)) {...} | while( (<+... - rcu_dereference + rcu_access_pointer (...) ...+>)) {...} ) Signed-off-by: Andreea-Cristina Bernat Signed-off-by: Johannes Berg --- Reading git-diff-tree failed