From: Sandhya Bankar Date: Sun, 28 Feb 2016 09:16:56 +0000 (+0530) Subject: Staging: lustre: Remove int typecast of offsetof(). X-Git-Tag: Ubuntu-4.10.0-19.21~3743^2~359 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=04697f7b61b07aedf6fbf2bba73f07b231e44d6a;p=mirror_ubuntu-artful-kernel.git Staging: lustre: Remove int typecast of offsetof(). Remove int typecast of offsetof(). As per below coccinelle rule: @@ type T; expression E; @@ - (int)(offsetof(T,E)) + offsetof(T,E) Signed-off-by: Sandhya Bankar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lnet/klnds/socklnd/socklnd.h b/drivers/staging/lustre/lnet/klnds/socklnd/socklnd.h index a17654446ece..a60d72f9432f 100644 --- a/drivers/staging/lustre/lnet/klnds/socklnd/socklnd.h +++ b/drivers/staging/lustre/lnet/klnds/socklnd/socklnd.h @@ -283,7 +283,7 @@ typedef struct /* transmit packet */ } tx_frags; } ksock_tx_t; -#define KSOCK_NOOP_TX_SIZE ((int)offsetof(ksock_tx_t, tx_frags.paged.kiov[0])) +#define KSOCK_NOOP_TX_SIZE (offsetof(ksock_tx_t, tx_frags.paged.kiov[0])) /* network zero copy callback descriptor embedded in ksock_tx_t */