ChangeSet 1.1342.8.64, 2003/09/30 16:45:29-07:00, baldrick@free.fr [PATCH] USB speedtouch: neater check This change was applied to 2.4, but not to 2.5. drivers/usb/misc/speedtch.c | 4 +--- 1 files changed, 1 insertion(+), 3 deletions(-) diff -Nru a/drivers/usb/misc/speedtch.c b/drivers/usb/misc/speedtch.c --- a/drivers/usb/misc/speedtch.c Fri Oct 3 16:44:30 2003 +++ b/drivers/usb/misc/speedtch.c Fri Oct 3 16:44:30 2003 @@ -1306,11 +1306,9 @@ static int __init udsl_usb_init (void) { - struct sk_buff *skb; /* dummy for sizeof */ - dbg ("udsl_usb_init: driver version " DRIVER_VERSION); - if (sizeof (struct udsl_control) > sizeof (skb->cb)) { + if (sizeof (struct udsl_control) > sizeof (((struct sk_buff *)0)->cb)) { printk (KERN_ERR __FILE__ ": unusable with this kernel!\n"); return -EIO; }