Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Fix some minor issues from static code scan #351

Merged
merged 1 commit into from
Mar 3, 2021
Merged

Fix some minor issues from static code scan #351

merged 1 commit into from
Mar 3, 2021

Conversation

wcwang
Copy link
Contributor

@wcwang wcwang commented Mar 3, 2021

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>
@wcwang wcwang requested review from coxuintel and hyuan3 March 3, 2021 07:22
@HaxmCI HaxmCI added CI:Build Pass CI:Build Pass CI:Mac Test Pass CI:Mac Test Pass labels Mar 3, 2021
@wcwang wcwang merged commit 94102ae into master Mar 3, 2021
@wcwang wcwang deleted the secure-scan branch March 3, 2021 08:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CI:Build Pass CI:Build Pass CI:Mac Test Pass CI:Mac Test Pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants