提交 9a1cadb9 编写于 作者: D David Daney 提交者: Greg Kroah-Hartman

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: NDavid Daney <ddaney@caviumnetworks.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 fc427a5a
...@@ -28,11 +28,9 @@ ...@@ -28,11 +28,9 @@
dev_warn (ehci_to_hcd(ehci)->self.controller , fmt , ## args ) dev_warn (ehci_to_hcd(ehci)->self.controller , fmt , ## args )
#ifdef VERBOSE_DEBUG #ifdef VERBOSE_DEBUG
# define vdbg dbg
# define ehci_vdbg ehci_dbg # define ehci_vdbg ehci_dbg
#else #else
# define vdbg(fmt,args...) do { } while (0) static inline void ehci_vdbg(struct ehci_hcd *ehci, ...) {}
# define ehci_vdbg(ehci, fmt, args...) do { } while (0)
#endif #endif
#ifdef DEBUG #ifdef DEBUG
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册