aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2008-09-22 14:42:51 -0700
committerThomas Gleixner <[email protected]>2008-09-24 15:45:48 +0200
commit5a51b713ccf8835d5adf7217e2f86eb12b1ca851 (patch)
treeb5c67c0252bcbd5d8df9b10e9fd306d79e53e8b1 /net/lapb/lapb_out.c
parent5a9fa73072854981a5c05eb7ba18a96d49c2804f (diff)
posix-timers: lock_timer: kill the bogus ->it_id check
lock_timer() checks that the timer found by idr_find(timer_id) has ->it_id == timer_id. This buys nothing. This check can fail only if sys_timer_create() unlocked idr_lock after idr_get_new(), but didn't set ->it_id = new_timer_id yet. But in that case ->it_process == NULL so lock_timer() can't succeed anyway. Also remove a couple of unneeded typecasts. Note that with or without this patch we have a small problem. sys_timer_create() doesn't ensure that the result of setting (say) ->it_sigev_notify must be visible if lock_timer() succeeds. 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