History

scsi: ufs: Simplify ufshcd_clear_cmd()

Remove the local variable 'err'. This patch does not change any functionality.

Bart Van Assche committed 4 years ago

Commit da8badd1 parent f6eed151 file · +2 −6Browse files

Unified · Split

drivers/ufs/core/ufshcd.c+2−6
@@ -2866,7 +2866,6 @@ static int ufshcd_compose_dev_cmd(struct ufs_hba *hba, · 2865 unmodified lines
28662866 static int
28672867 ufshcd_clear_cmd(struct ufs_hba *hba, int tag)
28682868 {
2869− int err = 0;
28702869 unsigned long flags;
28712870 u32 mask = 1 << tag;
28722871
@@ -2879,11 +2878,8 @@ ufshcd_clear_cmd(struct ufs_hba *hba, int tag) · 6 unmodified lines
28792878 * wait for h/w to clear corresponding bit in door-bell.
28802879 * max. wait is 1 sec.
28812880 */
2882− err = ufshcd_wait_for_register(hba,
2883− REG_UTP_TRANSFER_REQ_DOOR_BELL,
2884− mask, ~mask, 1000, 1000);
2885−
2886− return err;
2881+ return ufshcd_wait_for_register(hba, REG_UTP_TRANSFER_REQ_DOOR_BELL,
2882+ mask, ~mask, 1000, 1000);
28872883 }
28882884
28892885 static int