From: Florian Westphal Date: Fri, 5 Jun 2009 11:26:21 +0000 (+0200) Subject: netfilter: ipt_MASQUERADE: remove redundant rwlock X-Git-Tag: v2.6.31-rc1~330^2~32^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17f2f52be0edb6d1ff5a3675f2bc545aea2dbf76;p=pandora-kernel.git netfilter: ipt_MASQUERADE: remove redundant rwlock The lock "protects" an assignment and a comparision of an integer. When the caller of device_cmp() evaluates the result, nat->masq_index may already have been changed (regardless if the lock is there or not). So, the lock either has to be held during nf_ct_iterate_cleanup(), or can be removed. This does the latter. Signed-off-by: Florian Westphal Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed