netfilter: remove unneccessary checks from netlink notifiers
[GitHub/exynos8895/android_kernel_samsung_universal8895.git] / net / ipv4 / netfilter / ip_queue.c
index 9811a456fb5d39a11d73a27eb049d966600a7589..9f078709195100e9bc94f48021f71e32b9a3af9a 100644 (file)
@@ -497,8 +497,7 @@ ipq_rcv_nl_event(struct notifier_block *this,
 {
        struct netlink_notify *n = ptr;
 
-       if (event == NETLINK_URELEASE &&
-           n->protocol == NETLINK_FIREWALL && n->pid) {
+       if (event == NETLINK_URELEASE && n->protocol == NETLINK_FIREWALL) {
                write_lock_bh(&queue_lock);
                if ((n->net == &init_net) && (n->pid == peer_pid))
                        __ipq_reset();