Merge tag 'tty-4.7-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
[linux-2.6-block.git] / net / netfilter / nf_conntrack_proto_tcp.c
index 7cc1d9c22a9fa757d1f752dfcb4c8e928c4c9e11..70c8381641a79ee7fa186ae241f987dd4629636c 100644 (file)
@@ -313,13 +313,7 @@ static void tcp_print_tuple(struct seq_file *s,
 /* Print out the private part of the conntrack. */
 static void tcp_print_conntrack(struct seq_file *s, struct nf_conn *ct)
 {
-       enum tcp_conntrack state;
-
-       spin_lock_bh(&ct->lock);
-       state = ct->proto.tcp.state;
-       spin_unlock_bh(&ct->lock);
-
-       seq_printf(s, "%s ", tcp_conntrack_names[state]);
+       seq_printf(s, "%s ", tcp_conntrack_names[ct->proto.tcp.state]);
 }
 
 static unsigned int get_conntrack_index(const struct tcphdr *tcph)