All of lore.kernel.org
 help / color / mirror / Atom feed
* [trivial PATCH] cr: fix undefined value
@ 2009-03-24 19:12 Serge E. Hallyn
  0 siblings, 0 replies; only message in thread
From: Serge E. Hallyn @ 2009-03-24 19:12 UTC (permalink / raw)
  To: Oren Laadan; +Cc: Linux Containers

ret can be used undefined at bottom

Signed-off-by: Serge E. Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
 checkpoint/ckpt_mem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/checkpoint/ckpt_mem.c b/checkpoint/ckpt_mem.c
index 7cfeac3..b1b50b5 100644
--- a/checkpoint/ckpt_mem.c
+++ b/checkpoint/ckpt_mem.c
@@ -525,7 +525,7 @@ static int cr_write_shared_vma_contents(struct cr_ctx *ctx,
 {
 	struct inode *inode;
 	unsigned long end;
-	int ret;
+	int ret = -EINVAL;
 
 	/*
 	 * Citing mmap(2): "Updates to the mapping are visible to other
-- 
1.6.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-24 19:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-24 19:12 [trivial PATCH] cr: fix undefined value Serge E. Hallyn

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.