scsi: ufs: fix condition in which DME command failure msg is printed out
authorYaniv Gardi <ygardi@codeaurora.org>
Thu, 24 Nov 2016 00:32:49 +0000 (16:32 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 Nov 2016 17:06:57 +0000 (12:06 -0500)
commitf37e9f8cf8bc681250880f8c1372fb882c9379b8
treed56bf5d41dadbda8ddba134c298f94810708bef9
parentfb7b45f0462f144e1924a357995552f24f0c9d0c
scsi: ufs: fix condition in which DME command failure msg is printed out

The condition in which error message is printed out was incorrect and
resulted error message only if retries exhausted.
But retries happens only if DME command is a peer command, and thus
DME commands which are not peer commands and fail are not printed out.
This change fixes this issue.

Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c