Skip to content

Commit 95c9ae1

Browse files
Colin Ian Kingtorvalds
authored andcommitted
mm/process_vm_access: remove redundant initialization of iov_r
The pointer iov_r is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 110ceb8 commit 95c9ae1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/process_vm_access.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ static ssize_t process_vm_rw(pid_t pid,
260260
struct iovec iovstack_l[UIO_FASTIOV];
261261
struct iovec iovstack_r[UIO_FASTIOV];
262262
struct iovec *iov_l = iovstack_l;
263-
struct iovec *iov_r = iovstack_r;
263+
struct iovec *iov_r;
264264
struct iov_iter iter;
265265
ssize_t rc;
266266
int dir = vm_write ? WRITE : READ;

0 commit comments

Comments
 (0)