Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a5640f1 authored by Namhyung Kim's avatar Namhyung Kim Committed by Al Viro
Browse files

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: default avatarNamhyung Kim <namhyung@gmail.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 16ebe911
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -597,11 +597,9 @@ 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;

	/*