posix-timers: Drop redundant memset() invocation
Initially in commit6891c4509cmemset() was required to clear a variable allocated on stack. Commit2482097c6cremoved the on stack variable and retained the memset() despite the fact that the memory is allocated via kmem_cache_zalloc() and therefore zereoed already. Drop the redundant memset(). Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/Z9ctVxwaYOV4A2g4@grain
This commit is contained in:
parent
8e63360d86
commit
d1c3a3f1c9
|
|
@ -526,7 +526,6 @@ static int do_timer_create(clockid_t which_clock, struct sigevent *event,
|
|||
} else {
|
||||
new_timer->it_sigev_notify = SIGEV_SIGNAL;
|
||||
new_timer->sigq.info.si_signo = SIGALRM;
|
||||
memset(&new_timer->sigq.info.si_value, 0, sizeof(sigval_t));
|
||||
new_timer->sigq.info.si_value.sival_int = new_timer->it_id;
|
||||
new_timer->it_pid = get_pid(task_tgid(current));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue