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

Commit 722ed38b authored by Siba Prasad's avatar Siba Prasad
Browse files

scsi: ufs: Fix initialization of pointer



Pointer cmd_type is uninitialized in ufshcd_cond_add_cmd_trace()
function. Fix this by initializing the pointer with NULL.

Change-Id: I1fde5fc330e21e175c487b9d5f008ab3189a51ef
Signed-off-by: default avatarSiba Prasad <sibap@codeaurora.org>
parent c1a24720
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -653,7 +653,7 @@ static inline void ufshcd_cond_add_cmd_trace(struct ufs_hba *hba,
					unsigned int tag, const char *str)
{
	struct ufshcd_lrb *lrbp;
	char *cmd_type;
	char *cmd_type = NULL;
	u8 opcode = 0;
	u8 cmd_id = 0, idn = 0;
	sector_t lba = -1;