Skip to content

Commit

Permalink
net: sched: remove unused helpers
Browse files Browse the repository at this point in the history
tcf_block_dev() doesn't seem to be used anywhere in the tree.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jakub Kicinski authored and David S. Miller committed Oct 5, 2018
1 parent a97d97b commit d26d4b1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions include/net/pkt_cls.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ static inline struct Qdisc *tcf_block_q(struct tcf_block *block)
return block->q;
}

static inline struct net_device *tcf_block_dev(struct tcf_block *block)
{
return tcf_block_q(block)->dev_queue->dev;
}

void *tcf_block_cb_priv(struct tcf_block_cb *block_cb);
struct tcf_block_cb *tcf_block_cb_lookup(struct tcf_block *block,
tc_setup_cb_t *cb, void *cb_ident);
Expand Down Expand Up @@ -122,11 +117,6 @@ static inline struct Qdisc *tcf_block_q(struct tcf_block *block)
return NULL;
}

static inline struct net_device *tcf_block_dev(struct tcf_block *block)
{
return NULL;
}

static inline
int tc_setup_cb_block_register(struct tcf_block *block, tc_setup_cb_t *cb,
void *cb_priv)
Expand Down

0 comments on commit d26d4b1

Please sign in to comment.