diff options
author | Oleg Nesterov <[email protected]> | 2008-09-22 14:42:49 -0700 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2008-09-24 15:45:48 +0200 |
commit | ef864c958801768fb28bd3603cd0b098b394671c (patch) | |
tree | ea0291b5f3281b1e7d4432dd8c31e1182446cd89 /net/lapb/lapb_out.c | |
parent | 717835d94d3e3d343a302df0a3cb9405887c3e2a (diff) |
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 <[email protected]>
Cc: [email protected]
Cc: Roland McGrath <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions