Skip to content

Commit

Permalink
net: sched: sch_teql: Remove unused function
Browse files Browse the repository at this point in the history
Remove the function teql_neigh_release() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Rickard Strandqvist authored and David S. Miller committed Jan 12, 2015
1 parent 83400b9 commit ddcde70
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions net/sched/sch_teql.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,6 @@ teql_peek(struct Qdisc *sch)
return NULL;
}

static inline void
teql_neigh_release(struct neighbour *n)
{
if (n)
neigh_release(n);
}

static void
teql_reset(struct Qdisc *sch)
{
Expand Down

0 comments on commit ddcde70

Please sign in to comment.