From: sunwxg <sun.wxg@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Andreas Dilger <andreas.dilger@intel.com>,
Amir Shehata <amir.shehata@intel.com>,
Peng Tao <bergwolf@gmail.com>,
Doug Oucharek <doug.s.oucharek@intel.com>
Cc: Sun Wang <sun.wxg@gmail.com>,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] staging:lustre:lnet: Incorrect type in assignment
Date: Mon, 1 Dec 2014 14:53:52 +0800 [thread overview]
Message-ID: <1417416832-10352-2-git-send-email-sun.wxg@gmail.com> (raw)
In-Reply-To: <1417416832-10352-1-git-send-email-sun.wxg@gmail.com>
From: Sun Wang <sun.wxg@gmail.com>
Incorrect type when assign value to varible iov_base.
Signed-off-by: Sun Wang <sun.wxg@gmail.com>
---
.../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;
next parent reply other threads:[~2014-12-01 6:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1417416832-10352-1-git-send-email-sun.wxg@gmail.com>
2014-12-01 6:53 ` sunwxg [this message]
2014-12-02 17:15 ` [PATCH] staging:lustre:lnet: Incorrect type in assignment Al Viro
2014-12-01 6:18 sunwxg
2014-12-01 6:33 ` Joe Perches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1417416832-10352-2-git-send-email-sun.wxg@gmail.com \
--to=sun.wxg@gmail.com \
--cc=amir.shehata@intel.com \
--cc=andreas.dilger@intel.com \
--cc=bergwolf@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=doug.s.oucharek@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.