aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2017-08-18 19:56:27 -0500
committerEric W. Biederman <ebiederm@xmission.com>2018-01-22 19:07:08 -0600
commit3b10db2b06e2f6191aabb14babe28dcaa657a947 (patch)
treea903169e259f30612105288af09fe166172c6822 /kernel/time
parentsignal: Don't use structure initializers for struct siginfo (diff)
downloadlinux-dev-3b10db2b06e2f6191aabb14babe28dcaa657a947.tar.xz
linux-dev-3b10db2b06e2f6191aabb14babe28dcaa657a947.zip
signal: Replace memset(info,...) with clear_siginfo for clarity
The function clear_siginfo is just a nice wrapper around memset so this results in no functional change. This change makes mistakes a little more difficult and it makes it clearer what is going on. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/posix-timers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c
index ec999f32c840..75043046914e 100644
--- a/kernel/time/posix-timers.c
+++ b/kernel/time/posix-timers.c
@@ -462,7 +462,7 @@ static struct k_itimer * alloc_posix_timer(void)
kmem_cache_free(posix_timers_cache, tmr);
return NULL;
}
- memset(&tmr->sigq->info, 0, sizeof(siginfo_t));
+ clear_siginfo(&tmr->sigq->info);
return tmr;
}