linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] compat: remove unnecessary assignment in compat_rw_copy_check_uvector()
@ 2010-12-26 16:41 Namhyung Kim
  2010-12-26 16:41 ` [PATCH 2/3] compat: update comment of compat statfs syscalls Namhyung Kim
  2010-12-26 16:41 ` [PATCH 3/3] compat: copy missing fields in compat_statfs64 to user Namhyung Kim
  0 siblings, 2 replies; 4+ messages in thread
From: Namhyung Kim @ 2010-12-26 16:41 UTC (permalink / raw)
  To: Alexander Viro; +Cc: linux-fsdevel, linux-kernel, Jeff Moyer

*@ret_pointer is initialized to @fast_pointer thus the assignment is
redundant.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
---
 fs/compat.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/fs/compat.c b/fs/compat.c
index b074e9f79148..0a22f973f4b5 100644
--- a/fs/compat.c
+++ b/fs/compat.c
@@ -597,10 +597,8 @@ ssize_t compat_rw_copy_check_uvector(int type,
 	if (nr_segs > fast_segs) {
 		ret = -ENOMEM;
 		iov = kmalloc(nr_segs*sizeof(struct iovec), GFP_KERNEL);
-		if (iov == NULL) {
-			*ret_pointer = fast_pointer;
+		if (iov == NULL)
 			goto out;
-		}
 	}
 	*ret_pointer = iov;
 
-- 
1.7.3.4.600.g982838b0


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

end of thread, other threads:[~2010-12-27 15:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-26 16:41 [PATCH 1/3] compat: remove unnecessary assignment in compat_rw_copy_check_uvector() Namhyung Kim
2010-12-26 16:41 ` [PATCH 2/3] compat: update comment of compat statfs syscalls Namhyung Kim
2010-12-26 16:41 ` [PATCH 3/3] compat: copy missing fields in compat_statfs64 to user Namhyung Kim
2010-12-27 15:36   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).