On Wednesday 10 September 2003 18:55, Greg KH wrote:
> On Wed, Sep 10, 2003 at 12:50:04PM +0200, Duncan Sands wrote:
> >  speedtch.c |    7 +------
> >  1 files changed, 1 insertion(+), 6 deletions(-)
>
> Rejected the 2.4 version of this patch for the same reasons...
>
> greg k-h

How about this?

Neater sanity check.


 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 11 14:58:34 2003
+++ b/drivers/usb/speedtch.c    Thu Sep 11 14:58:34 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

Reply via email to