@@ -152,7 +152,7 @@ static int if_usb_probe(struct usb_interface *intf,
lbtf_deb_enter(LBTF_DEB_USB);
udev = interface_to_usbdev(intf);
- cardp = kzalloc(sizeof(struct if_usb_card), GFP_KERNEL);
+ cardp = kzalloc(sizeof(*cardp), GFP_KERNEL);
if (!cardp)
goto error;
@@ -536,8 +536,7 @@ static void if_usb_receive_fwload(struct urb *urb)
return;
}
- syncfwheader = kmemdup(skb->data, sizeof(struct fwsyncheader),
- GFP_ATOMIC);
+ syncfwheader = kmemdup(skb->data, sizeof(*syncfwheader), GFP_ATOMIC);
if (!syncfwheader) {
lbtf_deb_usbd(&cardp->udev->dev,
"Failure to allocate syncfwheader\n");