Commit 11208b0b authored by Nicholas Parkanyi's avatar Nicholas Parkanyi Committed by Greg Kroah-Hartman

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: default avatarNicholas Parkanyi <n.parkanyi@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 353710ce
...@@ -37,35 +37,23 @@ ...@@ -37,35 +37,23 @@
/* For memory mapped IO */ /* For memory mapped IO */
#define VNSvInPortB(dwIOAddress, pbyData) \ #define VNSvInPortB(dwIOAddress, pbyData) \
do { \ (*(pbyData) = ioread8(dwIOAddress))
*(pbyData) = ioread8(dwIOAddress); \
} while (0)
#define VNSvInPortW(dwIOAddress, pwData) \ #define VNSvInPortW(dwIOAddress, pwData) \
do { \ (*(pwData) = ioread16(dwIOAddress))
*(pwData) = ioread16(dwIOAddress); \
} while (0)
#define VNSvInPortD(dwIOAddress, pdwData) \ #define VNSvInPortD(dwIOAddress, pdwData) \
do { \ (*(pdwData) = ioread32(dwIOAddress))
*(pdwData) = ioread32(dwIOAddress); \
} while (0)
#define VNSvOutPortB(dwIOAddress, byData) \ #define VNSvOutPortB(dwIOAddress, byData) \
do { \ iowrite8((u8)(byData), dwIOAddress)
iowrite8((u8)byData, dwIOAddress); \
} while (0)
#define VNSvOutPortW(dwIOAddress, wData) \ #define VNSvOutPortW(dwIOAddress, wData) \
do { \ iowrite16((u16)(wData), dwIOAddress)
iowrite16((u16)wData, dwIOAddress); \
} while (0)
#define VNSvOutPortD(dwIOAddress, dwData) \ #define VNSvOutPortD(dwIOAddress, dwData) \
do { \ iowrite32((u32)(dwData), dwIOAddress)
iowrite32((u32)dwData, dwIOAddress); \
} while (0)
#define PCAvDelayByIO(uDelayUnit) \ #define PCAvDelayByIO(uDelayUnit) \
do { \ do { \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment