netfilter: remove unneccessary checks from netlink notifiers
[pandora-kernel.git] / net / ipv6 / netfilter / ip6_queue.c
index a82016f..47a3623 100644 (file)
@@ -499,8 +499,7 @@ ipq_rcv_nl_event(struct notifier_block *this,
 {
        struct netlink_notify *n = ptr;
 
-       if (event == NETLINK_URELEASE &&
-           n->protocol == NETLINK_IP6_FW && n->pid) {
+       if (event == NETLINK_URELEASE && n->protocol == NETLINK_IP6_FW) {
                write_lock_bh(&queue_lock);
                if ((n->net == &init_net) && (n->pid == peer_pid))
                        __ipq_reset();