networking: make skb_pull & friends return void pointers
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / net / bluetooth / a2mp.c
index f0095fd79818de116164a226e7d9feb27abfa5b4..aad994edd3bb714a7ad7d4606c9ef31feec97f7a 100644 (file)
@@ -239,7 +239,7 @@ static int a2mp_discover_rsp(struct amp_mgr *mgr, struct sk_buff *skb,
                }
 
                len -= sizeof(*cl);
-               cl = (void *) skb_pull(skb, sizeof(*cl));
+               cl = skb_pull(skb, sizeof(*cl));
        }
 
        /* Fall back to L2CAP init sequence */
@@ -279,7 +279,7 @@ static int a2mp_change_notify(struct amp_mgr *mgr, struct sk_buff *skb,
        while (skb->len >= sizeof(*cl)) {
                BT_DBG("Controller id %d type %d status %d", cl->id, cl->type,
                       cl->status);
-               cl = (struct a2mp_cl *) skb_pull(skb, sizeof(*cl));
+               cl = skb_pull(skb, sizeof(*cl));
        }
 
        /* TODO send A2MP_CHANGE_RSP */