Commit 2c099ccb authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

net: sched: choke: remove some dead code

We accidentally left this dead code behind after commit 5952fde1
("net: sched: choke: remove dead filter classify code").
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 781159fb
...@@ -223,7 +223,6 @@ static bool choke_match_random(const struct choke_sched_data *q, ...@@ -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, static int choke_enqueue(struct sk_buff *skb, struct Qdisc *sch,
struct sk_buff **to_free) struct sk_buff **to_free)
{ {
int ret = NET_XMIT_SUCCESS | __NET_XMIT_BYPASS;
struct choke_sched_data *q = qdisc_priv(sch); struct choke_sched_data *q = qdisc_priv(sch);
const struct red_parms *p = &q->parms; const struct red_parms *p = &q->parms;
...@@ -290,11 +289,6 @@ static int choke_enqueue(struct sk_buff *skb, struct Qdisc *sch, ...@@ -290,11 +289,6 @@ static int choke_enqueue(struct sk_buff *skb, struct Qdisc *sch,
congestion_drop: congestion_drop:
qdisc_drop(skb, sch, to_free); qdisc_drop(skb, sch, to_free);
return NET_XMIT_CN; 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) static struct sk_buff *choke_dequeue(struct Qdisc *sch)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment