]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ozwpan: replace alloc_skb with dev_alloc_skb in ozproto.c
authorXenia Ragiadakou <burzalodowa@gmail.com>
Tue, 21 May 2013 10:18:57 +0000 (13:18 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 May 2013 17:54:45 +0000 (10:54 -0700)
This patch replaces the calls to alloc_skb with calls
to dev_alloc_skb.

dev_alloc_skb has GFP_ATOMIC priority so the
replacement does not change the code semantics.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozproto.c

index 3badf1537adb344deb47c868608d6a91230c9659..83bbd4b449feb571f33a60db52a0af5d723947be 100644 (file)
@@ -97,7 +97,7 @@ static void oz_send_conn_rsp(struct oz_pd *pd, u8 status)
        struct oz_elt_connect_rsp *body;
        int sz = sizeof(struct oz_hdr) + sizeof(struct oz_elt) +
                        sizeof(struct oz_elt_connect_rsp);
-       skb = alloc_skb(sz + OZ_ALLOCATED_SPACE(dev), GFP_ATOMIC);
+       skb = dev_alloc_skb(sz + OZ_ALLOCATED_SPACE(dev));
        if (skb == NULL)
                return;
        skb_reserve(skb, LL_RESERVED_SPACE(dev));