projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb81572
)
netfilter: nft_meta_bridge: Eliminate 'out' label
author
Phil Sutter
<phil@nwl.cc>
Tue, 23 Jul 2019 13:27:53 +0000
(15:27 +0200)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Thu, 25 Jul 2019 06:38:29 +0000
(08:38 +0200)
The label is used just once and the code it points at is not reused, no
point in keeping it.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/bridge/netfilter/nft_meta_bridge.c
patch
|
blob
|
history
diff --git
a/net/bridge/netfilter/nft_meta_bridge.c
b/net/bridge/netfilter/nft_meta_bridge.c
index a98dec2cf0cfd0abd96fc1e2e1e72c1659a9d592..1804e867f7151c77284f15b3681e72728c73cc5b 100644
(file)
--- a/
net/bridge/netfilter/nft_meta_bridge.c
+++ b/
net/bridge/netfilter/nft_meta_bridge.c
@@
-57,13
+57,11
@@
static void nft_meta_bridge_get_eval(const struct nft_expr *expr,
return;
}
default:
-
goto out
;
+
return nft_meta_get_eval(expr, regs, pkt)
;
}
strncpy((char *)dest, br_dev ? br_dev->name : "", IFNAMSIZ);
return;
-out:
- return nft_meta_get_eval(expr, regs, pkt);
err:
regs->verdict.code = NFT_BREAK;
}