mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 08:23:38 +07:00
Staging: vt6655: Remove do { } while (0) from single-statement macros in upc.h.
This patch fixes checkpatch.pl warnings in upc.h regarding single-statement macros embedded within do { } while (0) blocks. Signed-off-by: Nicholas Parkanyi <n.parkanyi@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
353710ce90
commit
11208b0b3a
@ -37,35 +37,23 @@
|
||||
/* For memory mapped IO */
|
||||
|
||||
|
||||
#define VNSvInPortB(dwIOAddress, pbyData) \
|
||||
do { \
|
||||
*(pbyData) = ioread8(dwIOAddress); \
|
||||
} while (0)
|
||||
#define VNSvInPortB(dwIOAddress, pbyData) \
|
||||
(*(pbyData) = ioread8(dwIOAddress))
|
||||
|
||||
#define VNSvInPortW(dwIOAddress, pwData) \
|
||||
do { \
|
||||
*(pwData) = ioread16(dwIOAddress); \
|
||||
} while (0)
|
||||
#define VNSvInPortW(dwIOAddress, pwData) \
|
||||
(*(pwData) = ioread16(dwIOAddress))
|
||||
|
||||
#define VNSvInPortD(dwIOAddress, pdwData) \
|
||||
do { \
|
||||
*(pdwData) = ioread32(dwIOAddress); \
|
||||
} while (0)
|
||||
#define VNSvInPortD(dwIOAddress, pdwData) \
|
||||
(*(pdwData) = ioread32(dwIOAddress))
|
||||
|
||||
#define VNSvOutPortB(dwIOAddress, byData) \
|
||||
do { \
|
||||
iowrite8((u8)byData, dwIOAddress); \
|
||||
} while (0)
|
||||
#define VNSvOutPortB(dwIOAddress, byData) \
|
||||
iowrite8((u8)(byData), dwIOAddress)
|
||||
|
||||
#define VNSvOutPortW(dwIOAddress, wData) \
|
||||
do { \
|
||||
iowrite16((u16)wData, dwIOAddress); \
|
||||
} while (0)
|
||||
#define VNSvOutPortW(dwIOAddress, wData) \
|
||||
iowrite16((u16)(wData), dwIOAddress)
|
||||
|
||||
#define VNSvOutPortD(dwIOAddress, dwData) \
|
||||
do { \
|
||||
iowrite32((u32)dwData, dwIOAddress); \
|
||||
} while (0)
|
||||
#define VNSvOutPortD(dwIOAddress, dwData) \
|
||||
iowrite32((u32)(dwData), dwIOAddress)
|
||||
|
||||
#define PCAvDelayByIO(uDelayUnit) \
|
||||
do { \
|
||||
|
Loading…
Reference in New Issue
Block a user