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

Commit 72e77c65 authored by Sayali Lokhande's avatar Sayali Lokhande
Browse files

scsi: ufs: Fix compilation error in ufs cmd logging



In function ufshcd_add_cmd_trace(), cmd_id entry is
not initialized when CONFIG_SCSI_UFSHCD_CMD_LOGGING
is disabled and resulting in compilation errors.This
change initializes cmd_id to fix compilation error.

Change-Id: I1b89f4bf93432dab81b1b76736ac003099572b22
Signed-off-by: default avatarSayali Lokhande <sayalil@codeaurora.org>
parent 74b6b84c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -635,6 +635,7 @@ static void __ufshcd_cmd_log(struct ufs_hba *hba, char *str, char *cmd_type,

	entry.str = str;
	entry.lba = lba;
	entry.cmd_id = cmd_id;
	entry.transfer_len = transfer_len;
	entry.doorbell = ufshcd_readl(hba, REG_UTP_TRANSFER_REQ_DOOR_BELL);
	entry.tag = tag;