summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-01-01 17:20:42 +0100
committerJean-Francois Moine <moinejf@free.fr>2009-01-01 17:20:42 +0100
commit3bdb904852c74d8c0d7c55a17fb9ed559ae1e855 (patch)
tree9391526617f5842f0c9aa7ed809dd9b2023b6af0
parent8295b6940120a069aa0078103ba943997fad6fd1 (diff)
downloadmediapointer-dvb-s2-3bdb904852c74d8c0d7c55a17fb9ed559ae1e855.tar.gz
mediapointer-dvb-s2-3bdb904852c74d8c0d7c55a17fb9ed559ae1e855.tar.bz2
gspca - common: Simplify the debug macros.
From: Jean-Francois Moine <moinejf@free.fr> The err, warning and info redefinitions don't need the use of do {} while. Priority: normal Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
-rw-r--r--linux/drivers/media/video/gspca/gspca.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/linux/drivers/media/video/gspca/gspca.h b/linux/drivers/media/video/gspca/gspca.h
index e5c8eb709..6f172e9e5 100644
--- a/linux/drivers/media/video/gspca/gspca.h
+++ b/linux/drivers/media/video/gspca/gspca.h
@@ -33,19 +33,13 @@ extern int gspca_debug;
#endif
#undef err
#define err(fmt, args...) \
- do {\
- printk(KERN_ERR MODULE_NAME ": " fmt "\n", ## args); \
- } while (0)
+ printk(KERN_ERR MODULE_NAME ": " fmt "\n", ## args)
#undef info
#define info(fmt, args...) \
- do {\
- printk(KERN_INFO MODULE_NAME ": " fmt "\n", ## args); \
- } while (0)
+ printk(KERN_INFO MODULE_NAME ": " fmt "\n", ## args)
#undef warn
#define warn(fmt, args...) \
- do {\
- printk(KERN_WARNING MODULE_NAME ": " fmt "\n", ## args); \
- } while (0)
+ printk(KERN_WARNING MODULE_NAME ": " fmt "\n", ## args)
#define GSPCA_MAX_FRAMES 16 /* maximum number of video frame buffers */
/* image transfers */