mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 12:00:22 +09:00
FROMLIST: scsi: ufs: Simplify ufshcd_clear_cmd()
Remove the local variable 'err'. This patch does not change any functionality. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Bug: 235425408 Link: https://lore.kernel.org/all/20220613214442.212466-2-bvanassche@acm.org/ Change-Id: I09dc1a70fb26ab98bcd99537a1ee4a1ddd5d4b66 Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
committed by
Bart Van Assche
parent
fe3b7f87c4
commit
986b493c4c
@@ -2929,7 +2929,6 @@ static int ufshcd_compose_dev_cmd(struct ufs_hba *hba,
|
||||
static int
|
||||
ufshcd_clear_cmd(struct ufs_hba *hba, int tag)
|
||||
{
|
||||
int err = 0;
|
||||
unsigned long flags;
|
||||
u32 mask = 1 << tag;
|
||||
|
||||
@@ -2942,11 +2941,8 @@ ufshcd_clear_cmd(struct ufs_hba *hba, int tag)
|
||||
* wait for h/w to clear corresponding bit in door-bell.
|
||||
* max. wait is 1 sec.
|
||||
*/
|
||||
err = ufshcd_wait_for_register(hba,
|
||||
REG_UTP_TRANSFER_REQ_DOOR_BELL,
|
||||
mask, ~mask, 1000, 1000);
|
||||
|
||||
return err;
|
||||
return ufshcd_wait_for_register(hba, REG_UTP_TRANSFER_REQ_DOOR_BELL,
|
||||
mask, ~mask, 1000, 1000);
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in New Issue
Block a user