diff options
author | David Daney <ddaney@caviumnetworks.com> | 2011-01-25 12:59:35 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-04 14:43:58 -0500 |
commit | 9a1cadb9dd9130345d59638f5b6a8a4982c2b34a (patch) | |
tree | e0cbbdb3bfab215994bd2dcbb666fe1ab23e3874 /drivers/usb/host/ehci-dbg.c | |
parent | fc427a5a4bf3be770d7fbd933474957062049f1f (diff) |
USB: EHCI: Cleanup and rewrite ehci_vdgb().
The vdbg macro is not used anywhere so it can be removed.
With pre-release GCC-4.6, there are several complaints of variables
that are 'set but not used' caused by the ehci_vdbg() macro expanding
to something that does not contain any of its arguments. We can quiet
this warning by rewriting ehci_vdbg() as a variadic static inline that
does nothing.
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ehci-dbg.c')
-rw-r--r-- | drivers/usb/host/ehci-dbg.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c index 3be238a24cc5..693c29b30521 100644 --- a/drivers/usb/host/ehci-dbg.c +++ b/drivers/usb/host/ehci-dbg.c | |||
@@ -28,11 +28,9 @@ | |||
28 | dev_warn (ehci_to_hcd(ehci)->self.controller , fmt , ## args ) | 28 | dev_warn (ehci_to_hcd(ehci)->self.controller , fmt , ## args ) |
29 | 29 | ||
30 | #ifdef VERBOSE_DEBUG | 30 | #ifdef VERBOSE_DEBUG |
31 | # define vdbg dbg | ||
32 | # define ehci_vdbg ehci_dbg | 31 | # define ehci_vdbg ehci_dbg |
33 | #else | 32 | #else |
34 | # define vdbg(fmt,args...) do { } while (0) | 33 | static inline void ehci_vdbg(struct ehci_hcd *ehci, ...) {} |
35 | # define ehci_vdbg(ehci, fmt, args...) do { } while (0) | ||
36 | #endif | 34 | #endif |
37 | 35 | ||
38 | #ifdef DEBUG | 36 | #ifdef DEBUG |