1
0
Files
linux/kernel
Oleg Nesterov ef864c9588 posix-timers: sys_timer_create: cleanup the error handling
Cleanup.

- sys_timer_create() is big and complicated. The code above the "out:"
  label relies on the fact that "error" must be == 0. This is not very
  robust, make the code more explicit. Remove the unneeded initialization
  of error.

- If idr_get_new() succeeds (as it normally should), we check the returned
  value twice. Move the "-EAGAIN" check under "if (error)".

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: mingo@elte.hu
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-09-24 15:45:48 +02:00
..
2008-07-28 23:32:00 +02:00
2008-09-14 16:25:35 +02:00
2008-07-26 20:53:20 -04:00
2008-09-14 16:25:35 +02:00
2008-09-23 13:38:44 +02:00
2008-09-14 16:25:35 +02:00
2008-07-28 14:37:38 +02:00
2008-08-01 08:39:35 -05:00
2008-07-26 12:00:09 -07:00
2008-08-13 12:55:10 +02:00
2008-09-02 19:21:40 -07:00
2008-08-25 17:39:57 +02:00
2008-09-14 16:25:35 +02:00
2008-09-14 16:25:35 +02:00
2008-09-14 16:25:35 +02:00
2008-07-25 10:53:45 -07:00