dm: cleanup assert in core.c

- check input by condition check, instead of assert.
 - remove redundant header file including for some files.

Tracked-On: #3252
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Reviewed-by: Shuo Liu <shuo.a.liu@intel.com>
This commit is contained in:
Yonghua Huang
2019-07-04 13:25:21 +08:00
committed by ACRN System Integration
parent 012ec75163
commit 842da0ac1e
9 changed files with 2 additions and 9 deletions

View File

@@ -6,7 +6,6 @@
*/
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>

View File

@@ -10,7 +10,6 @@
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
#include <pthread.h>
#include "vmmapi.h"

View File

@@ -19,7 +19,6 @@
#include <stdbool.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <assert.h>
#include "vmmapi.h"
#include "tpm_internal.h"