Fix some minor issues from static code scan by wcwang · Pull Request #351 · intel/haxm (original) (raw)
Adjust the code according to the analysis result of Klocwork and fix
some coding style issues.
- Type cast the instant value so that operands in a bitwise operation
have the same size; - Judge whether the pointer variable is NULL before accessing it;
- Initialize the variable to prevent returning it directly;
- Trim trailing spaces.
Signed-off-by: Wenchao Wang wenchao.wang@intel.com
Adjust the code according to the analysis result of Klocwork and fix some coding style issues.
- Type cast the instant value so that operands in a bitwise operation have the same size;
- Judge whether the pointer variable is NULL before accessing it;
- Initialize the variable to prevent returning it directly;
- Trim trailing spaces.
Signed-off-by: Wenchao Wang wenchao.wang@intel.com