[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)
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>

No differences found