summaryrefslogtreecommitdiffstats
path: root/src/kernel/exception.C
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2013-04-26 13:23:30 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-05-01 14:03:50 -0500
commitc9be87b42af523b35b1bcb727527341ecd9a5fd4 (patch)
treef72d32196b3fbbca0b994bfc61a4bdecc4eb6d5c /src/kernel/exception.C
parent02cf3abca60d9f7e2b218e1a445c3c80230a3ceb (diff)
downloadtalos-hostboot-c9be87b42af523b35b1bcb727527341ecd9a5fd4.tar.gz
talos-hostboot-c9be87b42af523b35b1bcb727527341ecd9a5fd4.zip
Clean up potential uninitialized object instances.
Change-Id: I859f94234d5672f55f745dd37b9662c310b694a7 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4236 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/kernel/exception.C')
-rw-r--r--src/kernel/exception.C3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kernel/exception.C b/src/kernel/exception.C
index 80e04fc34..c82bfec98 100644
--- a/src/kernel/exception.C
+++ b/src/kernel/exception.C
@@ -199,8 +199,7 @@ void kernel_execute_fp_unavail()
{
// Enable FP by creating a FP context.
// Context switch code will handle the rest.
- t->fp_context = new context_fp_t;
- memset(t->fp_context, '\0', sizeof(context_fp_t));
+ t->fp_context = new context_fp_t();
}
}
OpenPOWER on IntegriCloud