scsi: ufs: core: Fix unnecessary operation for early return
authorChanWoo Lee <cw9316.lee@samsung.com>
Fri, 11 Nov 2022 06:23:01 +0000 (15:23 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Nov 2022 23:45:18 +0000 (23:45 +0000)
commit222d227f375b4cfa517a8f1f0f266ebe0263ad05
tree0d15b5de401b0389d3cce4ffaf912c0ae9c574a1
parent5277326d07fbf68aa7fc9e7bce6c381002e00fca
scsi: ufs: core: Fix unnecessary operation for early return

Setting bitmap_len is not required when returning early. Defer until it is
needed.

Signed-off-by: ChanWoo Lee <cw9316.lee@samsung.com>
Link: https://lore.kernel.org/r/20221111062301.7423-1-cw9316.lee@samsung.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshpb.c