summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2010-12-27 01:41:52 +0900
committerAl Viro <viro@zeniv.linux.org.uk>2011-01-17 04:54:38 -0500
commit6a5640f10255a8941a3a57396dda20af7a5c9a9e (patch)
treeeba96cfb1f64df42f7748a025536fa9d5db754e9
parent16ebe911eba8afa88879213dc4388f2dd701561e (diff)
downloadlinux-6a5640f10255a8941a3a57396dda20af7a5c9a9e.tar.bz2
compat: remove unnecessary assignment in compat_rw_copy_check_uvector()
*@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> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/compat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/compat.c b/fs/compat.c
index eb1740ac8c0a..d717442c4133 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;