net_sched: fix a typo in tc_for_each_action()
authorWANG Cong <xiyou.wangcong@gmail.com>
Sun, 14 Aug 2016 05:34:58 +0000 (22:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Aug 2016 23:27:51 +0000 (19:27 -0400)
It is harmless because all users pass 'a' to this macro.

Fixes: 00175aec941e ("net/sched: Macro instead of CONFIG_NET_CLS_ACT ifdef")
Cc: Amir Vadai <amir@vadai.me>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/act_api.h

index 41e6a24a44b9b11413b33d8fe717992dd2a2d6db..f53ee9d315c1541dc52d14503bd7ce3837fa9220 100644 (file)
@@ -193,7 +193,7 @@ int tcf_action_copy_stats(struct sk_buff *, struct tc_action *, int);
        (list_empty(&(_exts)->actions))
 
 #define tc_for_each_action(_a, _exts) \
-       list_for_each_entry(a, &(_exts)->actions, list)
+       list_for_each_entry(_a, &(_exts)->actions, list)
 
 #define tc_single_action(_exts) \
        (list_is_singular(&(_exts)->actions))