From: Stephen Hemminger Date: Fri, 24 Feb 2017 23:24:42 +0000 (-0800) Subject: bpf: remove unnecessary cast X-Git-Tag: v4.11.0~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d896797c7b398da9273446a7f6bd742974133143;p=thirdparty%2Fiproute2.git bpf: remove unnecessary cast No need to cast RTA_DATA Signed-off-by: Stephen Hemminger --- diff --git a/lib/bpf.c b/lib/bpf.c index 64e199b32..211c3d185 100644 --- 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)