bpf: remove unnecessary cast

No need to cast RTA_DATA

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Stephen Hemminger 2017-02-24 15:24:42 -08:00
parent a59b616200
commit d896797c7b
1 changed files with 1 additions and 1 deletions

View File

@ -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)