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

@@ -235,7 +235,7 @@ build_bitmap_clear(bitmap32_clear_lock, "l", uint32_t, BUS_LOCK)
static inline bool bitmap_test(uint16_t nr_arg, const volatile uint64_t *addr)
{
uint16_t nr;
int32_t ret=0;
int32_t ret = 0;
nr = nr_arg & 0x3fU;
asm volatile("btq %q2,%1\n\tsbbl %0, %0"
: "=r" (ret)
@@ -247,7 +247,7 @@ static inline bool bitmap_test(uint16_t nr_arg, const volatile uint64_t *addr)
static inline bool bitmap32_test(uint16_t nr_arg, const volatile uint32_t *addr)
{
uint16_t nr;
int32_t ret=0;
int32_t ret = 0;
nr = nr_arg & 0x1fU;
asm volatile("btl %2,%1\n\tsbbl %0, %0"
: "=r" (ret)