Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04697f7b authored by Sandhya Bankar's avatar Sandhya Bankar Committed by Greg Kroah-Hartman
Browse files

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: default avatarSandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 31cf532a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */