net: sched: use tcf_exts_has_actions instead of exts->nr_actions
authorJiri Pirko <jiri@mellanox.com>
Fri, 4 Aug 2017 12:29:03 +0000 (14:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Aug 2017 18:21:24 +0000 (11:21 -0700)
commit978dfd8d14a503d20be1f1e2ae328c3eac675a2d
treeb3d6e2c408c01b1dcfdc39d5ee4c687489979259
parentec1a9cca0e13391167567964fd04e61a39d6a4ae
net: sched: use tcf_exts_has_actions instead of exts->nr_actions

For check in tcf_exts_dump use tcf_exts_has_actions helper instead
of exts->nr_actions for checking if there are any actions present.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c