]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
bpf: remove unnecessary cast
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 24 Feb 2017 23:24:42 +0000 (15:24 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 24 Feb 2017 23:25:02 +0000 (15:25 -0800)
No need to cast RTA_DATA

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/bpf.c

index 64e199b3236f76eeb46a819550e8cf5ff3067050..211c3d1850bf5ad6fe49e2d082c303d7f4c1ee7b 100644 (file)
--- a/lib/bpf.c
+++ b/lib/bpf.c
@@ -256,7 +256,7 @@ out:
 
 void bpf_print_ops(FILE *f, struct rtattr *bpf_ops, __u16 len)
 {
-       struct sock_filter *ops = (struct sock_filter *) RTA_DATA(bpf_ops);
+       struct sock_filter *ops = RTA_DATA(bpf_ops);
        int i;
 
        if (len == 0)