summaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_rules.c
diff options
context:
space:
mode:
authorYu Zhe <yuzhe@nfschina.com>2022-04-29 04:14:04 +0200
committerDavid S. Miller <davem@davemloft.net>2022-04-30 16:12:58 +0200
commit2e47eece158a7e5d2205be42e9c44b87302de1a7 (patch)
tree085d31da7d418c0ad743006562d3af304876130b /net/ipv4/fib_rules.c
parenteth: remove remaining copies of the NAPI_POLL_WEIGHT define (diff)
downloadlinux-2e47eece158a7e5d2205be42e9c44b87302de1a7.tar.xz
linux-2e47eece158a7e5d2205be42e9c44b87302de1a7.zip
ipv4: remove unnecessary type castings
remove unnecessary void* type castings. Signed-off-by: Yu Zhe <yuzhe@nfschina.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_rules.c')
-rw-r--r--net/ipv4/fib_rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/fib_rules.c b/net/ipv4/fib_rules.c
index 001fea394bde..513f475c6a53 100644
--- a/net/ipv4/fib_rules.c
+++ b/net/ipv4/fib_rules.c
@@ -145,7 +145,7 @@ INDIRECT_CALLABLE_SCOPE bool fib4_rule_suppress(struct fib_rule *rule,
int flags,
struct fib_lookup_arg *arg)
{
- struct fib_result *result = (struct fib_result *) arg->result;
+ struct fib_result *result = arg->result;
struct net_device *dev = NULL;
if (result->fi) {