mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] FC: cifs: Initialized an uninitialized variable
@ 2011-03-08  4:00 Vinay Sawal
  2011-03-08  4:26 ` Al Viro
  0 siblings, 1 reply; 4+ messages in thread
From: Vinay Sawal @ 2011-03-08  4:00 UTC (permalink / raw)
  To: sfrench; +Cc: linux-cifs, samba-technical, linux-kernel, Vinay Sawal

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-08  4:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-08  4:00 [PATCH] FC: cifs: Initialized an uninitialized variable Vinay Sawal
2011-03-08  4:26 ` Al Viro
2011-03-08  4:38   ` Steve French
2011-03-08  4:48     ` Vinay Sawal

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®