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:
parent
c1a2472056
commit
722ed38bad
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue