]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/bluetooth/af_bluetooth.c
net: use common macro for assering skb->cb[] available size in protocol families
[mirror_ubuntu-artful-kernel.git] / net / bluetooth / af_bluetooth.c
index ce22e0cfa923fb947256f8c36405b7e8bce5c888..4b904c97a06872d0c71e3ca41bf7764a6a98c2e6 100644 (file)
@@ -711,10 +711,9 @@ EXPORT_SYMBOL_GPL(bt_debugfs);
 
 static int __init bt_init(void)
 {
-       struct sk_buff *skb;
        int err;
 
-       BUILD_BUG_ON(sizeof(struct bt_skb_cb) > sizeof(skb->cb));
+       sock_skb_cb_check_size(sizeof(struct bt_skb_cb));
 
        BT_INFO("Core ver %s", VERSION);