summaryrefslogtreecommitdiffstats
path: root/net/llc/llc_input.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2005-09-22 03:59:22 -0300
committerArnaldo Carvalho de Melo <acme@mandriva.com>2005-09-22 03:59:22 -0300
commitaf426d327c38bcb8cbb87c60134d42d2e93b20cc (patch)
tree913af84609a80231cf38d1f64e5775fb66121c95 /net/llc/llc_input.c
parent0eb8017242cb7e8b18af4751b03646436b8f90e3 (diff)
downloadlinux-af426d327c38bcb8cbb87c60134d42d2e93b20cc.tar.bz2
[LLC]: Help the compiler with likely/unlikely, saving some more bytes
Signed-off-by: Jochen Friedrich <jochen@scram.de> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/llc/llc_input.c')
-rw-r--r--net/llc/llc_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/llc/llc_input.c b/net/llc/llc_input.c
index 13b46240b7a1..60c1acac7c97 100644
--- a/net/llc/llc_input.c
+++ b/net/llc/llc_input.c
@@ -101,7 +101,7 @@ static inline int llc_fixup_skb(struct sk_buff *skb)
u8 llc_len = 2;
struct llc_pdu_sn *pdu;
- if (!pskb_may_pull(skb, sizeof(*pdu)))
+ if (unlikely(!pskb_may_pull(skb, sizeof(*pdu))))
return 0;
pdu = (struct llc_pdu_sn *)skb->data;