bpf: remove unnecessary cast
No need to cast RTA_DATA Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
a59b616200
commit
d896797c7b
|
|
@ -256,7 +256,7 @@ out:
|
||||||
|
|
||||||
void bpf_print_ops(FILE *f, struct rtattr *bpf_ops, __u16 len)
|
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;
|
int i;
|
||||||
|
|
||||||
if (len == 0)
|
if (len == 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue