lkml.org 
[lkml]   [2010]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] usb/atm: Use FIELD_SIZEOF, trivial cleanup.
    Date
    Signed-off-by: Thiago Farina <tfransosi@gmail.com>
    ---
    drivers/usb/atm/usbatm.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/usb/atm/usbatm.c b/drivers/usb/atm/usbatm.c
    index fbea856..e78d735 100644
    --- a/drivers/usb/atm/usbatm.c
    +++ b/drivers/usb/atm/usbatm.c
    @@ -1348,7 +1348,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;
    }
    --
    1.6.6.103.g699d2


    \
     
     \ /
      Last update: 2010-01-12 02:47    [W:0.036 / U:2.836 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site