Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08add0c7 authored by Thiago Farina's avatar Thiago Farina Committed by Greg Kroah-Hartman
Browse files

USB: atm: Use FIELD_SIZEOF, trivial cleanup.

parent a7417100
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1349,7 +1349,7 @@ static int __init usbatm_usb_init(void)
{
	dbg("%s: driver version %s", __func__, DRIVER_VERSION);

	if (sizeof(struct usbatm_control) > sizeof(((struct sk_buff *) 0)->cb)) {
	if (sizeof(struct usbatm_control) > FIELD_SIZEOF(struct sk_buff, cb)) {
		printk(KERN_ERR "%s unusable with this kernel!\n", usbatm_driver_name);
		return -EIO;
	}