[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1293381714-5264-1-git-send-email-namhyung@gmail.com>
Date: Mon, 27 Dec 2010 01:41:52 +0900
From: Namhyung Kim <namhyung@...il.com>
To: Alexander Viro <viro@...iv.linux.org.uk>
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
Jeff Moyer <jmoyer@...hat.com>
Subject: [PATCH 1/3] compat: remove unnecessary assignment in compat_rw_copy_check_uvector()
*@..._pointer is initialized to @fast_pointer thus the assignment is
redundant.
Signed-off-by: Namhyung Kim <namhyung@...il.com>
Cc: Jeff Moyer <jmoyer@...hat.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists