Home
last modified time | relevance | path

Searched hist:"36 ed8d24" (Results 1 – 2 of 2) sorted by relevance

/openbmc/intel-ipmi-oem/src/
H A Dmultinodecommands.cpp36ed8d24 Tue Aug 03 14:44:14 CDT 2021 P Dheeraj Srujan Kumar <p.dheeraj.srujan.kumar@intel.com> Fix Klocwork Issue: Uninitialized variable

The boolean return value(ret) from smbiosUnlock() function is been
declared but not initialized.
Assigning "false" as the default value.

The variable "value" in getMultiNodeRole() function is declared, but
is being initialized in if-else-if condition, and missses the final else
condition which could render the variable "value" to be uninitialized.
Adding an else condition to return nullopt to fix this issue.

Signed-off-by: P Dheeraj Srujan Kumar <p.dheeraj.srujan.kumar@intel.com>
Change-Id: I51088b91d1d48ad1d1cc4779b2ed58fd2b79ee9c
H A Dsmbiosmdrv2handler.cpp36ed8d24 Tue Aug 03 14:44:14 CDT 2021 P Dheeraj Srujan Kumar <p.dheeraj.srujan.kumar@intel.com> Fix Klocwork Issue: Uninitialized variable

The boolean return value(ret) from smbiosUnlock() function is been
declared but not initialized.
Assigning "false" as the default value.

The variable "value" in getMultiNodeRole() function is declared, but
is being initialized in if-else-if condition, and missses the final else
condition which could render the variable "value" to be uninitialized.
Adding an else condition to return nullopt to fix this issue.

Signed-off-by: P Dheeraj Srujan Kumar <p.dheeraj.srujan.kumar@intel.com>
Change-Id: I51088b91d1d48ad1d1cc4779b2ed58fd2b79ee9c