ChangeSet 1.1139, 2003/09/24 13:03:57-07:00, [EMAIL PROTECTED]
[PATCH] USB speedtouch: neater sanity check
Neater sanity check.
drivers/usb/speedtch.c | 4 +---
1 files changed, 1 insertion(+), 3 deletions(-)
diff -Nru a/drivers/usb/speedtch.c b/drivers/usb/speedtch.c
--- a/drivers/usb/speedtch.c Thu Sep 25 16:04:06 2003
+++ b/drivers/usb/speedtch.c Thu Sep 25 16:04:06 2003
@@ -1289,11 +1289,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;
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel