aboutsummaryrefslogtreecommitdiffstats
path: root/net/caif/chnl_net.c
diff options
context:
space:
mode:
authorsjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com>2011-05-13 02:44:08 +0000
committerDavid S. Miller <davem@davemloft.net>2011-05-15 17:45:56 -0400
commit3f874adc4ae80828b79e8aac6891c108c1f6be6d (patch)
tree5708865d06ae40ddfb12f4aab92b21267fdb0da4 /net/caif/chnl_net.c
parentcaif: Bugfix debugfs directory name must be unique. (diff)
downloadlinux-dev-3f874adc4ae80828b79e8aac6891c108c1f6be6d.tar.xz
linux-dev-3f874adc4ae80828b79e8aac6891c108c1f6be6d.zip
caif: remove unesesarry exports
Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif/chnl_net.c')
-rw-r--r--net/caif/chnl_net.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/caif/chnl_net.c b/net/caif/chnl_net.c
index 1a3398a89aee..649ebacaf6bc 100644
--- a/net/caif/chnl_net.c
+++ b/net/caif/chnl_net.c
@@ -83,10 +83,11 @@ static int chnl_recv_cb(struct cflayer *layr, struct cfpkt *pkt)
if (!priv)
return -EINVAL;
+ skb = (struct sk_buff *) cfpkt_tonative(pkt);
+
/* Get length of CAIF packet. */
- pktlen = cfpkt_getlen(pkt);
+ pktlen = skb->len;
- skb = (struct sk_buff *) cfpkt_tonative(pkt);
/* Pass some minimum information and
* send the packet to the net stack.
*/