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

Commit 418a10f4 authored by Dov Levenglick's avatar Dov Levenglick Committed by Matt Wagantall
Browse files

usb: gadget: remove redundant messages



Remove messages that provide no important information
and that don't indicate anything that the user should
be aware of.

Change-Id: If25e559c3eb603d3a0781f0333e04fe6efddd04c
Signed-off-by: default avatarDov Levenglick <dovl@codeaurora.org>
parent a10f5f63
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -807,11 +807,12 @@ static void gbam_stop(void *param, enum usb_bam_pipe_dir dir)
	struct gbam_port *port = param;

	if (dir == USB_TO_PEER_PERIPHERAL) {
		/*
		 * Only handling BAM2BAM, as there is no equivelant to
		 * gbam_stop_endless_rx() for the SYS2BAM use case
		 */
		if (port->data_ch.src_pipe_type == USB_BAM_PIPE_BAM2BAM)
			gbam_stop_endless_rx(port);
		else
			pr_warn("%s: no function equivalent to gbam_stop_endless_rx for sys2bam pipe\n",
					__func__);
	} else {
		gbam_stop_endless_tx(port);
	}
+4 −3
Original line number Diff line number Diff line
@@ -1840,11 +1840,12 @@ static void bam_data_stop(void *param, enum usb_bam_pipe_dir dir)
	struct bam_data_port *port = param;

	if (dir == USB_TO_PEER_PERIPHERAL) {
		/*
		 * Only handling BAM2BAM, as there is no equivelant to
		 * bam_data_stop_endless_rx() for the SYS2BAM use case
		 */
		if (port->data_ch.src_pipe_type == USB_BAM_PIPE_BAM2BAM)
			bam_data_stop_endless_rx(port);
		else
			pr_warn("%s: no function equivalent to bam_data_stop_endless_rx for sys2bam pipe\n",
					__func__);
	} else {
		bam_data_stop_endless_tx(port);
	}