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 <bankarsandhya512@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
31cf532a29
commit
04697f7b61
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue