hv: fix 'Space missing before or after binary operator'

This patch adds the necessary space before or after binary operator.

v1 -> v2:
 * minor fix related to integer
   [i - 1] ====> [i - 1U]

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
This commit is contained in:
Shiqing Gao
2018-12-03 13:29:01 +08:00
committed by wenlingz
parent e32b2b4c11
commit b38629b85e
9 changed files with 13 additions and 17 deletions

View File

@@ -267,8 +267,7 @@ static void print_pow2(struct print_param *param,
mask = (1UL << shift) - 1UL;
/* determine digit translation table */
digits = ((param->vars.flags & PRINT_FLAG_UPPER) != 0U) ?
&upper_hex_digits : &lower_hex_digits;
digits = ((param->vars.flags & PRINT_FLAG_UPPER) != 0U) ? &upper_hex_digits : &lower_hex_digits;
/* apply mask for short/char */
v &= param->vars.mask;