commit | 9eab89ff204051dcab1660aa65abb187c89f0f77 | [log] [tgz] |
---|---|---|
author | Maksim Masalski <maksim.masalski@intel.com> | Tue May 18 16:03:21 2021 +0800 |
committer | Kumar Gala <kumar.gala@gmail.com> | Fri Jun 04 16:22:38 2021 -0500 |
tree | 1fc34cf11d02478ed39321bb3639ea8031fc6df1 | |
parent | a61edd480d31a5adfe20d254fae54dd34ce8d538 [diff] |
lib: replace one case switch with if operator Current "switch" operator with one case replace with the "if" operator, because every switch statement shall have at least two case-clauses. Found as a coding guideline violation (MISRA R16.1) by static coding scanning tool. Signed-off-by: Maksim Masalski <maksim.masalski@intel.com>