mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
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>
This commit is contained in:
parent
12d0ad3be9
commit
d1d0fc5e4c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user