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>
This commit is contained in:
Родитель
16ebe911eb
Коммит
6a5640f102
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче