Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1614681 > unrolled thread

[PATCH 3/4] net: ipv4: Remove exceptional & on function name

Started byArushi Singhal <arushisinghal19971997@gmail.com>
First post2017-04-02 11:30 +0200
Last post2017-04-02 11:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/4] net: ipv4: Remove exceptional & on function name Arushi Singhal <arushisinghal19971997@gmail.com> - 2017-04-02 11:30 +0200

#1614681 — [PATCH 3/4] net: ipv4: Remove exceptional & on function name

FromArushi Singhal <arushisinghal19971997@gmail.com>
Date2017-04-02 11:30 +0200
Subject[PATCH 3/4] net: ipv4: Remove exceptional & on function name
Message-ID<trJZD-71T-9@gated-at.bofh.it>
Remove & from function pointers to conform to the style found elsewhere
in the file. Done using the following semantic patch

// <smpl>
@r@
identifier f;
@@

f(...) { ... }
@@
identifier r.f;
@@

- &f
+ f
// </smpl>

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
---
 net/ipv4/netfilter/nft_fib_ipv4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipv4/netfilter/nft_fib_ipv4.c b/net/ipv4/netfilter/nft_fib_ipv4.c
index 2981291910dd..cc4f9da97677 100644
--- a/net/ipv4/netfilter/nft_fib_ipv4.c
+++ b/net/ipv4/netfilter/nft_fib_ipv4.c
@@ -212,7 +212,7 @@ nft_fib4_select_ops(const struct nft_ctx *ctx,
 
 static struct nft_expr_type nft_fib4_type __read_mostly = {
 	.name		= "fib",
-	.select_ops	= &nft_fib4_select_ops,
+	.select_ops	= nft_fib4_select_ops,
 	.policy		= nft_fib_policy,
 	.maxattr	= NFTA_FIB_MAX,
 	.family		= NFPROTO_IPV4,
-- 
2.11.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web