diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-12-26 19:41:52 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-01-17 12:54:38 +0300 |
commit | 6a5640f10255a8941a3a57396dda20af7a5c9a9e (patch) | |
tree | eba96cfb1f64df42f7748a025536fa9d5db754e9 /fs/compat.c | |
parent | 16ebe911eba8afa88879213dc4388f2dd701561e (diff) | |
download | linux-6a5640f10255a8941a3a57396dda20af7a5c9a9e.tar.xz |
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.c | 4 |
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; |