From: Vinay Sawal <vinaysawal@gmail.com>
To: sfrench@samba.org
Cc: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org,
linux-kernel@vger.kernel.org, Vinay Sawal <vinaysawal@gmail.com>
Subject: [PATCH] FC: cifs: Initialized an uninitialized variable
Date: Mon, 7 Mar 2011 20:00:09 -0800 [thread overview]
Message-ID: <1299556809-16194-1-git-send-email-vinaysawal@gmail.com> (raw)
Removed a compile time warning by initializing an uninitialized variable.
Signed-off-by: Vinay Sawal <vinaysawal@gmail.com>
---
fs/cifs/file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index e964b1c..a9e5901 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -1819,7 +1819,7 @@ static ssize_t
cifs_iovec_read(struct file *file, const struct iovec *iov,
unsigned long nr_segs, loff_t *poffset)
{
- int rc;
+ int rc = -EFAULT;
int xid;
ssize_t total_read;
unsigned int bytes_read = 0;
--
1.6.2.4
next reply other threads:[~2011-03-08 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-08 4:00 Vinay Sawal [this message]
2011-03-08 4:26 ` Al Viro
2011-03-08 4:38 ` Steve French
2011-03-08 4:48 ` Vinay Sawal
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=1299556809-16194-1-git-send-email-vinaysawal@gmail.com \
--to=vinaysawal@gmail.com \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=samba-technical@lists.samba.org \
--cc=sfrench@samba.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®