netfilter: remove unneeded goto
authorJan Engelhardt <jengelh@medozas.de>
Wed, 18 Feb 2009 15:29:08 +0000 (16:29 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 18 Feb 2009 15:29:08 +0000 (16:29 +0100)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/core.c

index a90ac83c591852a6bf7be42fb32b9f572ddcbb6e..5bb34737501f988a00d006ae6c260aecd3312d51 100644 (file)
@@ -174,7 +174,6 @@ next_hook:
                             outdev, &elem, okfn, hook_thresh);
        if (verdict == NF_ACCEPT || verdict == NF_STOP) {
                ret = 1;
-               goto unlock;
        } else if (verdict == NF_DROP) {
                kfree_skb(skb);
                ret = -EPERM;
@@ -183,7 +182,6 @@ next_hook:
                              verdict >> NF_VERDICT_BITS))
                        goto next_hook;
        }
-unlock:
        rcu_read_unlock();
        return ret;
 }