diff options
author | Michal Soltys <soltys@ziu.info> | 2016-06-30 03:26:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-01 12:03:43 +0300 |
commit | d1d0fc5e4c6822c5dadd9389297c7c1b8eea314f (patch) | |
tree | f6570fd55386fa2e04884efdc906c9a5c7038b8d /net/sched | |
parent | 12d0ad3be9c3854e52ec74bb83bb6f43612827c7 (diff) | |
download | linux-d1d0fc5e4c6822c5dadd9389297c7c1b8eea314f.tar.xz |
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')
-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; } |