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: Siba Prasad <sibap@codeaurora.org>
This commit is contained in:
Siba Prasad 2017-06-13 12:53:44 +05:30
parent c1a2472056
commit 722ed38bad

View file

@ -653,7 +653,7 @@ static inline void ufshcd_cond_add_cmd_trace(struct ufs_hba *hba,
unsigned int tag, const char *str) unsigned int tag, const char *str)
{ {
struct ufshcd_lrb *lrbp; struct ufshcd_lrb *lrbp;
char *cmd_type; char *cmd_type = NULL;
u8 opcode = 0; u8 opcode = 0;
u8 cmd_id = 0, idn = 0; u8 cmd_id = 0, idn = 0;
sector_t lba = -1; sector_t lba = -1;