OSDN Git Service

scsi: ufs: Simplify a condition
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 13 Dec 2019 10:49:35 +0000 (13:49 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 Dec 2019 03:08:53 +0000 (22:08 -0500)
commitdc30c9e6d67f9edb02d543e1f213f3250bfa3a78
tree1b504124af93aae8174a3c60d79fc457d851c65f
parentbb14dd1564c90d333f51e69dd6fc880b8233ce11
scsi: ufs: Simplify a condition

We know that "check_for_bkops" is non-zero on this side of the || because
it was checked on the other side.

Link: https://lore.kernel.org/r/20191213104935.wgpq2epaz6zh5zus@kili.mountain
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c