mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 21:54:11 +08:00
netfilter: remove unneeded goto
Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
fe2a7ce4de
commit
fecea3a389
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user