From: Sandhya Bankar Date: Sun, 28 Feb 2016 09:16:56 +0000 (+0530) Subject: Staging: lustre: Remove int typecast of offsetof(). X-Git-Tag: v4.6-rc1~103^2~359 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04697f7b61b07aedf6fbf2bba73f07b231e44d6a;p=platform%2Fkernel%2Flinux-exynos.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 a176544..a60d72f 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 */