projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16ebe91
)
compat: remove unnecessary assignment in compat_rw_copy_check_uvector()
author
Namhyung Kim
<namhyung@gmail.com>
Sun, 26 Dec 2010 16:41:52 +0000
(
01:41
+0900)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 17 Jan 2011 09:54:38 +0000
(
04:54
-0500)
*@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>
fs/compat.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/compat.c
b/fs/compat.c
index eb1740ac8c0a1e9e167b5e53e0f49d425774ff3d..d717442c4133b44cca60aaed2306bd26fba798bc 100644
(file)
--- 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;