Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752839Ab0ALBpn (ORCPT ); Mon, 11 Jan 2010 20:45:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750934Ab0ALBpm (ORCPT ); Mon, 11 Jan 2010 20:45:42 -0500 Received: from qw-out-2122.google.com ([74.125.92.25]:8925 "EHLO qw-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750783Ab0ALBpm (ORCPT ); Mon, 11 Jan 2010 20:45:42 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=KGM3BGO0M/J7X0SU67J9zDZReEjr4UQWuDEstDlNzScxGncuC4BIxs91Lx8Cn5WHpG ia2v0vybcflLRuOEpsaZKvZkvuF3XaBnwfiz9cmYa5Xvqn71bH+hv+MFtDc8lqHeqHXc aqFV6XcbRRom0OTLA6Cf0z4VsQCzilzlgd4pE= From: Thiago Farina To: linux-kernel@vger.kernel.org Cc: Duncan Sands , Greg Kroah-Hartman , Thiago Farina , linux-usb@vger.kernel.org Subject: [PATCH] usb/atm: Use FIELD_SIZEOF, trivial cleanup. Date: Mon, 11 Jan 2010 20:45:26 -0500 Message-Id: X-Mailer: git-send-email 1.6.6.103.g699d2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 936 Lines: 26 Signed-off-by: Thiago Farina --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/