aboutsummaryrefslogtreecommitdiffstats
path: root/fs/compat.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2010-12-26 11:41:52 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2011-01-17 04:54:38 -0500
commit6a5640f10255a8941a3a57396dda20af7a5c9a9e (patch)
treeeba96cfb1f64df42f7748a025536fa9d5db754e9 /fs/compat.c
parent16ebe911eba8afa88879213dc4388f2dd701561e (diff)
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>
Diffstat (limited to 'fs/compat.c')
-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,
597 if (nr_segs > fast_segs) { 597 if (nr_segs > fast_segs) {
598 ret = -ENOMEM; 598 ret = -ENOMEM;
599 iov = kmalloc(nr_segs*sizeof(struct iovec), GFP_KERNEL); 599 iov = kmalloc(nr_segs*sizeof(struct iovec), GFP_KERNEL);
600 if (iov == NULL) { 600 if (iov == NULL)
601 *ret_pointer = fast_pointer;
602 goto out; 601 goto out;
603 }
604 } 602 }
605 *ret_pointer = iov; 603 *ret_pointer = iov;
606 604