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

Commit 4fa4626c authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

USB: cdc-acm: clean up verbose debug



Clean up use of verbose debug.

Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a5cc7ef9
Loading
Loading
Loading
Loading
+2 −9
Original line number Original line Diff line number Diff line
@@ -94,12 +94,6 @@ static DEFINE_MUTEX(open_mutex);
static const struct tty_port_operations acm_port_ops = {
static const struct tty_port_operations acm_port_ops = {
};
};


#ifdef VERBOSE_DEBUG
#define verbose	1
#else
#define verbose	0
#endif

/*
/*
 * Functions for ACM control messages.
 * Functions for ACM control messages.
 */
 */
@@ -528,9 +522,8 @@ static void acm_write_bulk(struct urb *urb)
	struct acm *acm = wb->instance;
	struct acm *acm = wb->instance;
	unsigned long flags;
	unsigned long flags;


	if (verbose || urb->status
	if (urb->status	|| (urb->actual_length != urb->transfer_buffer_length))
			|| (urb->actual_length != urb->transfer_buffer_length))
		dev_vdbg(&acm->data->dev, "%s - len %d/%d, status %d\n",
		dev_dbg(&acm->data->dev, "%s - len %d/%d, status %d\n",
			__func__,
			__func__,
			urb->actual_length,
			urb->actual_length,
			urb->transfer_buffer_length,
			urb->transfer_buffer_length,