summaryrefslogtreecommitdiffstats
path: root/include/net/tc_act/tc_bpf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/tc_act/tc_bpf.h')
-rw-r--r--include/net/tc_act/tc_bpf.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/tc_act/tc_bpf.h b/include/net/tc_act/tc_bpf.h
index 958d69cfb19c..80a4d6f49773 100644
--- a/include/net/tc_act/tc_bpf.h
+++ b/include/net/tc_act/tc_bpf.h
@@ -23,7 +23,6 @@ struct tcf_bpf {
struct sock_filter *bpf_ops;
const char *bpf_name;
};
-#define to_bpf(a) \
- container_of(a->priv, struct tcf_bpf, common)
+#define to_bpf(a) ((struct tcf_bpf *)a)
#endif /* __NET_TC_BPF_H */