net : optimize skb_release_data()
authorEric Dumazet <edumazet@google.com>
Wed, 24 Sep 2014 01:39:30 +0000 (18:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Sep 2014 20:53:49 +0000 (16:53 -0400)
commitff04a771ad25fc9ba91690e73465b4d34b6bf8b3
tree4d42ca1c4b28e84e35f8e4cad3ad277287c25cc8
parentcec08315190a4461a369d47041a510d104a5d2a2
net : optimize skb_release_data()

Cache skb_shinfo(skb) in a variable to avoid computing it multiple
times.

Reorganize the tests to remove one indentation level.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c