Skip to content

Commit

Permalink
net: sched: choke: remove some dead code
Browse files Browse the repository at this point in the history
We accidentally left this dead code behind after commit 5952fde
("net: sched: choke: remove dead filter classify code").

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Apr 5, 2017
1 parent 781159f commit 2c099cc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions net/sched/sch_choke.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ static bool choke_match_random(const struct choke_sched_data *q,
static int choke_enqueue(struct sk_buff *skb, struct Qdisc *sch,
struct sk_buff **to_free)
{
int ret = NET_XMIT_SUCCESS | __NET_XMIT_BYPASS;
struct choke_sched_data *q = qdisc_priv(sch);
const struct red_parms *p = &q->parms;

Expand Down Expand Up @@ -290,11 +289,6 @@ static int choke_enqueue(struct sk_buff *skb, struct Qdisc *sch,
congestion_drop:
qdisc_drop(skb, sch, to_free);
return NET_XMIT_CN;

if (ret & __NET_XMIT_BYPASS)
qdisc_qstats_drop(sch);
__qdisc_drop(skb, to_free);
return ret;
}

static struct sk_buff *choke_dequeue(struct Qdisc *sch)
Expand Down

0 comments on commit 2c099cc

Please sign in to comment.