aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655/device_cfg.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/vt6655/device_cfg.h')
-rw-r--r--drivers/staging/vt6655/device_cfg.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/staging/vt6655/device_cfg.h b/drivers/staging/vt6655/device_cfg.h
index 145457ba768..c567db0f6f0 100644
--- a/drivers/staging/vt6655/device_cfg.h
+++ b/drivers/staging/vt6655/device_cfg.h
@@ -83,13 +83,14 @@ typedef enum _chip_type {
#ifdef VIAWET_DEBUG
-#define ASSERT(x) { \
- if (!(x)) { \
- printk(KERN_ERR "assertion %s failed: file %s line %d\n", #x, \
- __FUNCTION__, __LINE__); \
- *(int *)0 = 0; \
- } \
- }
+#define ASSERT(x) \
+do { \
+ if (!(x)) { \
+ printk(KERN_ERR "assertion %s failed: file %s line %d\n", \
+ #x, __func__, __LINE__); \
+ *(int *)0 = 0; \
+ } \
+} while (0)
#define DBG_PORT80(value) outb(value, 0x80)
#else
#define ASSERT(x)