Skip to content

Commit

Permalink
compat: remove unnecessary assignment in compat_rw_copy_check_uvector()
Browse files Browse the repository at this point in the history
*@ret_pointer is initialized to @fast_pointer thus the assignment is
redundant.

Signed-off-by: Namhyung Kim <[email protected]>
Cc: Jeff Moyer <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
namhyung authored and Al Viro committed Jan 17, 2011
1 parent 16ebe91 commit 6a5640f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6a5640f

Please sign in to comment.