diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-14 09:01:25 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-14 09:01:25 -0700 |
| commit | 0fed95846d2d570e866c159927d155dc7b25b6d5 (patch) | |
| tree | 3f94c8321c1234590cd1b59664c0c4f93fe9a983 /include/linux/device.h | |
| parent | c16c278b274de7a6536aa75df921324f012e5f87 (diff) | |
Make dev_dbg() "use" it's 'dev' argument even when not debugging.
This avoids warnings about unused variables.
Diffstat (limited to 'include/linux/device.h')
| -rw-r--r-- | include/linux/device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index bd05cdfb326e..2b8b3d636889 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -406,7 +406,7 @@ extern void firmware_unregister(struct subsystem *); #define dev_dbg(dev, format, arg...) \ dev_printk(KERN_DEBUG , dev , format , ## arg) #else -#define dev_dbg(dev, format, arg...) do {} while (0) +#define dev_dbg(dev, format, arg...) do { (void)(dev); } while (0) #endif #define dev_err(dev, format, arg...) \ |
