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
2866static int2866static int
2867ufshcd_clear_cmd(struct ufs_hba *hba, int tag)2867ufshcd_clear_cmd(struct ufs_hba *hba, int tag)
2868{2868{
2869 int err = 0;
2870 unsigned long flags;2869 unsigned long flags;
2871 u32 mask = 1 << tag;2870 u32 mask = 1 << tag;
2872 2871
@@ -2879,11 +2878,8 @@ ufshcd_clear_cmd(struct ufs_hba *hba, int tag) · 6 unmodified lines
2879 * wait for h/w to clear corresponding bit in door-bell.2878 * wait for h/w to clear corresponding bit in door-bell.
2880 * max. wait is 1 sec.2879 * max. wait is 1 sec.
2881 */2880 */
2882 err = ufshcd_wait_for_register(hba,2881 return ufshcd_wait_for_register(hba, REG_UTP_TRANSFER_REQ_DOOR_BELL,
2883 REG_UTP_TRANSFER_REQ_DOOR_BELL,2882 mask, ~mask, 1000, 1000);
2884 mask, ~mask, 1000, 1000);
2885
2886 return err;
2887}2883}
2888 2884
2889static int2885static int