projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12d0ad3
)
net/sched/sch_hfsc.c: add unlikely() in qdisc_peek_len()
author
Michal Soltys
<soltys@ziu.info>
Thu, 30 Jun 2016 00:26:45 +0000
(
02:26
+0200)
committer
David S. Miller
<davem@davemloft.net>
Fri, 1 Jul 2016 09:03:43 +0000
(
05:03
-0400)
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>
net/sched/sch_hfsc.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_hfsc.c
b/net/sched/sch_hfsc.c
index
6d6df6b
..
e2244bb
100644
(file)
--- 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;
}