]> git.baikalelectronics.ru Git - kernel.git/commit
net: skb_trim explicitely check the linearity instead of data_len
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sat, 21 May 2011 19:46:09 +0000 (19:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 May 2011 01:01:21 +0000 (21:01 -0400)
commit750386e437b3b0d839904be4080ff178ee5fd46d
tree384806dfa9a6afe9e11d60bb82af2151323ec7be
parent5b2279734ef8f4ea08f9d751b7acf1c5ca7e80bf
net: skb_trim explicitely check the linearity instead of data_len

The purpose of the check on data_len is to check linearity, so use the inline
helper for this. No overhead and more explicit.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h