Static code analysis scan issue fix

Fix the issues found during code static scan

Tested:test by IPMI command.

Change-Id: Iaa5598d77e457628b88530d026bf44ab43a47ef9
Signed-off-by: Chen Yugang <yugang.chen@linux.intel.com>
1 file changed