Commit dc30c9e6 authored by Dan Carpenter's avatar Dan Carpenter Committed by Martin K. Petersen

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.mountainReviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Reviewed-by: default avatarAvri Altman <avri.altman@wdc.com>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent bb14dd15
...@@ -7684,8 +7684,7 @@ static int ufshcd_link_state_transition(struct ufs_hba *hba, ...@@ -7684,8 +7684,7 @@ static int ufshcd_link_state_transition(struct ufs_hba *hba,
* turning off the link would also turn off the device. * turning off the link would also turn off the device.
*/ */
else if ((req_link_state == UIC_LINK_OFF_STATE) && else if ((req_link_state == UIC_LINK_OFF_STATE) &&
(!check_for_bkops || (check_for_bkops && (!check_for_bkops || !hba->auto_bkops_enabled)) {
!hba->auto_bkops_enabled))) {
/* /*
* Let's make sure that link is in low power mode, we are doing * Let's make sure that link is in low power mode, we are doing
* this currently by putting the link in Hibern8. Otherway to * this currently by putting the link in Hibern8. Otherway to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment