Commit 4e130d8f authored by Jesper Juhl's avatar Jesper Juhl Committed by Linus Torvalds

[PATCH] fs_compat: tiny cleanup t retval

Tiny patch that cuts down the nr of assignments to 'ret'.
Signed-off-by: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent fb5451e4
......@@ -1620,7 +1620,7 @@ compat_sys_select(int n, compat_ulong_t __user *inp, compat_ulong_t __user *outp
fd_set_bits fds;
char *bits;
long timeout;
int ret, size, max_fdset;
int size, max_fdset, ret = -EINVAL;
timeout = MAX_SCHEDULE_TIMEOUT;
if (tvp) {
......@@ -1633,7 +1633,6 @@ compat_sys_select(int n, compat_ulong_t __user *inp, compat_ulong_t __user *outp
goto out_nofds;
}
ret = -EINVAL;
if (sec < 0 || usec < 0)
goto out_nofds;
......@@ -1643,7 +1642,6 @@ compat_sys_select(int n, compat_ulong_t __user *inp, compat_ulong_t __user *outp
}
}
ret = -EINVAL;
if (n < 0)
goto out_nofds;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment