diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-10-04 14:16:32 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-10-04 14:16:32 +0200 |
commit | cef3d6c06771651b20504357379c3ad53d7673cd (patch) | |
tree | 3b14f0c937b51fb8f38d78cfd4f27f63e9b92d1f /xen/common/sched_arinc653.c | |
parent | beb8eac93c9a38c417db4ae77430af5568e54f1c (diff) | |
download | xen-cef3d6c06771651b20504357379c3ad53d7673cd.tar.gz xen-cef3d6c06771651b20504357379c3ad53d7673cd.tar.bz2 xen-cef3d6c06771651b20504357379c3ad53d7673cd.zip |
use xzalloc in common code
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/sched_arinc653.c')
-rw-r--r-- | xen/common/sched_arinc653.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xen/common/sched_arinc653.c b/xen/common/sched_arinc653.c index b6f09ab3c8..63ddb82bc6 100644 --- a/xen/common/sched_arinc653.c +++ b/xen/common/sched_arinc653.c @@ -341,11 +341,10 @@ a653sched_init(struct scheduler *ops) { a653sched_priv_t *prv; - prv = xmalloc(a653sched_priv_t); + prv = xzalloc(a653sched_priv_t); if ( prv == NULL ) return -ENOMEM; - memset(prv, 0, sizeof(*prv)); ops->sched_data = prv; prv->schedule[0].dom_handle[0] = '\0'; |