Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82760526 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

USB: serial: remove dbg() from usb/serial.h



Now that all in-kernel users of the dbg() macro are gone, we can remove
it from the include/linux/usb/serial.h file.

Good riddance.

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e8656b02
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -365,14 +365,6 @@ static inline void usb_serial_debug_data(int debug,
			   function, size, size, data);
}

/* Use our own dbg macro */
#undef dbg
#define dbg(format, arg...)						\
do {									\
	if (debug)							\
		printk(KERN_DEBUG "%s: " format "\n", __FILE__, ##arg);	\
} while (0)

/*
 * Macro for reporting errors in write path to avoid inifinite loop
 * when port is used as a console.