diff options
author | Michal Soltys <soltys@ziu.info> | 2016-06-30 02:26:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-01 11:03:43 +0200 |
commit | d1d0fc5e4c6822c5dadd9389297c7c1b8eea314f (patch) | |
tree | f6570fd55386fa2e04884efdc906c9a5c7038b8d /net/sched/sch_hfsc.c | |
parent | net/sched/sch_hfsc.c: handle corner cases where head may change invalidating ... (diff) | |
download | linux-d1d0fc5e4c6822c5dadd9389297c7c1b8eea314f.tar.xz linux-d1d0fc5e4c6822c5dadd9389297c7c1b8eea314f.zip |
net/sched/sch_hfsc.c: add unlikely() in qdisc_peek_len()
The condition can only succeed on wrong configurations.
Signed-off-by: Michal Soltys <soltys@ziu.info>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_hfsc.c')
-rw-r--r-- | net/sched/sch_hfsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c index 6d6df6b2d38f..e2244bb78130 100644 --- a/net/sched/sch_hfsc.c +++ b/net/sched/sch_hfsc.c @@ -882,7 +882,7 @@ qdisc_peek_len(struct Qdisc *sch) unsigned int len; skb = sch->ops->peek(sch); - if (skb == NULL) { + if (unlikely(skb == NULL)) { qdisc_warn_nonwc("qdisc_peek_len", sch); return 0; } |