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

Commit 5ee5050e authored by Jack Pham's avatar Jack Pham
Browse files

msm: usb_bam: remove unused uninitialized variable



Remove the local variable 'bam' in usb_bam_sps_events()
along with the not very useful log message that was accessing
it uninitialized.

Change-Id: I07bd5f7c14463af17311ee6a1092f7b89bf017d1
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 01e90b62
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -962,7 +962,6 @@ int usb_bam_disconnect_pipe(enum usb_ctrl bam_type, u8 idx)
static void usb_bam_sps_events(enum sps_callback_case sps_cb_case, void *user)
{
	int i;
	int bam;
	struct usb_bam_ctx_type *ctx = user;
	struct usb_bam_pipe_connect *pipe_connect;
	struct usb_bam_event_info *event_info;
@@ -976,8 +975,6 @@ static void usb_bam_sps_events(enum sps_callback_case sps_cb_case, void *user)
		spin_lock(&ctx->usb_bam_lock);

		ctx->is_bam_inactivity = true;
		log_event_dbg("%s: Inactivity happened on bam=%s,%d\n",
				__func__, (char *)user, bam);

		for (i = 0; i < ctx->max_connections; i++) {
			pipe_connect = &ctx->usb_bam_connections[i];