* [patch] simplify compat_sys_timerfd.
@ 2007-05-14 9:21 Heiko Carstens
2007-05-14 16:47 ` Davide Libenzi
0 siblings, 1 reply; 2+ messages in thread
From: Heiko Carstens @ 2007-05-14 9:21 UTC (permalink / raw)
To: Andrew Morton; +Cc: Davide Libenzi, linux-kernel
From: Heiko Carstens <heiko.carstens@de.ibm.com>
Just thought this is easier to read.
Cc: Davide Libenzi <davidel@xmailserver.org>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
---
Feel free to ignore/drop.
fs/compat.c | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
Index: linux-2.6/fs/compat.c
===================================================================
--- linux-2.6.orig/fs/compat.c
+++ linux-2.6/fs/compat.c
@@ -2230,21 +2230,16 @@ asmlinkage long compat_sys_signalfd(int
asmlinkage long compat_sys_timerfd(int ufd, int clockid, int flags,
const struct compat_itimerspec __user *utmr)
{
- long res;
struct itimerspec t;
struct itimerspec __user *ut;
- res = -EFAULT;
if (get_compat_itimerspec(&t, utmr))
- goto err_exit;
+ return -EFAULT;
ut = compat_alloc_user_space(sizeof(*ut));
- if (copy_to_user(ut, &t, sizeof(t)) )
- goto err_exit;
+ if (copy_to_user(ut, &t, sizeof(t)))
+ return -EFAULT;
- res = sys_timerfd(ufd, clockid, flags, ut);
-err_exit:
- return res;
+ return sys_timerfd(ufd, clockid, flags, ut);
}
#endif /* CONFIG_TIMERFD */
-
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] simplify compat_sys_timerfd.
2007-05-14 9:21 [patch] simplify compat_sys_timerfd Heiko Carstens
@ 2007-05-14 16:47 ` Davide Libenzi
0 siblings, 0 replies; 2+ messages in thread
From: Davide Libenzi @ 2007-05-14 16:47 UTC (permalink / raw)
To: Heiko Carstens; +Cc: Andrew Morton, Linux Kernel Mailing List
On Mon, 14 May 2007, Heiko Carstens wrote:
> From: Heiko Carstens <heiko.carstens@de.ibm.com>
>
> Just thought this is easier to read.
>
> Cc: Davide Libenzi <davidel@xmailserver.org>
> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Davide Libenzi <davidel@xmailserver.org>
- Davide
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-14 16:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-14 9:21 [patch] simplify compat_sys_timerfd Heiko Carstens
2007-05-14 16:47 ` Davide Libenzi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®