[SCSI] ufs: Fix evaluation of UTP task completion code
authorVenkatraman S <svenkatr@ti.com>
Thu, 19 Apr 2012 06:16:22 +0000 (11:46 +0530)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 10 May 2012 07:59:24 +0000 (08:59 +0100)
commitfd0f8370c8a8400da5195e183ce1ef4f407cec21
tree82f67083fae2c23cfd3af3766f95c779f8ee5044
parentf555e05265657476da5839cdb478e8220eb9965d
[SCSI] ufs: Fix evaluation of UTP task completion code

While interpreting the result of UTP task completion status,
by using boolean &&, the evaluation would fail when the
UPIU_TASK_MANAGEMENT_FUNC_SUCCEEDED was received.

Either UPIU_TASK_MANAGEMENT_FUNC_COMPL or
UPIU_TASK_MANAGEMENT_FUNC_SUCCEEDED should be
considered as a success result.

Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Venkatraman S <svenkatr@ti.com>
Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
Acked-by: Santosh Y <santoshsy@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/ufs/ufshcd.c