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

Commit 245f11eb authored by Danny Segal's avatar Danny Segal Committed by Stephen Boyd
Browse files

usb: usb_bam: Code quality checking fix



Fixed a code-quality checking issue:
In usb_bam_a2_reset() function, the bam local variable is defined as
an unsigned char, but it is initialized by an enumeration value. Used a
conversion for fixing it.

Change-Id: I5f35476694ba6520eff77a6504d041eb70d7f5ac
Signed-off-by: default avatarDaniel Segal <dsegal@codeaurora.org>
parent 27f5fe36
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2109,7 +2109,7 @@ int usb_bam_a2_reset(bool to_reconnect)
				reconnect_pipe_idx[i] =
					pipe_connect->dst_pipe_index;

			bam = pipe_connect->bam_type;
			bam = (u8)pipe_connect->bam_type;
			if (bam < 0) {
				ret = -EINVAL;
				continue;