[PATCH] staging:lustre:lnet: Incorrect type in assignment

From: sunwxg
Date: Mon Dec 01 2014 - 01:57:30 EST


From: Sun Wang <sun.wxg@xxxxxxxxx>

Incorrect type when assign value to varible iov_base.

Signed-off-by: Sun Wang <sun.wxg@xxxxxxxxx>

---
.../drivers => drivers}/staging/lustre/lnet/lnet/lib-move.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lnet/lnet/lib-move.c b/drivers/staging/lustre/lnet/lnet/lib-move.c
index 4b9567d..fa29c6d 100644
--- a/drivers/staging/lustre/lnet/lnet/lib-move.c
+++ b/drivers/staging/lustre/lnet/lnet/lib-move.c
@@ -256,7 +256,7 @@ lnet_extract_iov(int dst_niov, struct iovec *dst,
LASSERT((int)niov <= dst_niov);

frag_len = src->iov_len - offset;
- dst->iov_base = ((char *)src->iov_base) + offset;
+ dst->iov_base = src->iov_base + offset;

if (len <= frag_len) {
dst->iov_len = len;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/