acrn-hypervisor/hypervisor/lib
Shiqing Gao 4446864eff hv: fix 'Pointer arithmetic is not on array'
Violation 'Pointer arithmetic is not on array' occurs in following
statement:
        *flags |= fl[pos - flagchars];

char flagchars[] is a well defined array.
It could be used directly to avoid the pointer arithmetic.

v1 -> v2:
 * use uint32_t rather than uint8_t for the index in order to let the
    type aligned with sizeof(flagchars)
 * add brackets to the then-block

Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
2018-07-11 10:26:10 +08:00
..
crypto hv:fix "missing for discarded return value" for memcpy_s and strcpy_s 2018-07-09 09:22:37 +08:00
div.c HV: Moving operators out from conditions 2018-07-09 13:10:34 +08:00
mdelay.c HV: Moving operators out from conditions 2018-07-09 13:10:34 +08:00
memory.c HV: code format for memory.c 2018-07-10 15:54:45 +08:00
spinlock.c hv:fix "missing for discarded return value" for memset 2018-07-05 14:14:48 +08:00
sprintf.c hv: fix 'Pointer arithmetic is not on array' 2018-07-11 10:26:10 +08:00
string.c HV: Assignment should not mix with operator 2018-07-10 11:56:36 +08:00
udelay.c HV: timer: keep TSC frequency in KHz 2018-07-03 10:18:06 +08:00