UPSTREAM: scsi: ufs: ufs-qcom: Remove unneeded variable 'err'

'err' is never set in this functon. Remove the declaration and just return
0.

Link: https://lore.kernel.org/r/20210907044111.29632-1-cw9316.lee@samsung.com
Signed-off-by: ChanWoo Lee <cw9316.lee@samsung.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Bug: 234653003
(cherry picked from commit c4adf171e8)
Change-Id: I8f38ceac838d543e6d2e89d9c8cdd3bd1b785694
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
ChanWoo Lee
2021-09-07 13:41:11 +09:00
committed by Bart Van Assche
parent 5a7e56907c
commit dee94462b9

View File

@@ -892,7 +892,6 @@ static int ufs_qcom_setup_clocks(struct ufs_hba *hba, bool on,
enum ufs_notify_change_status status)
{
struct ufs_qcom_host *host = ufshcd_get_variant(hba);
int err = 0;
/*
* In case ufs_qcom_init() is not yet done, simply ignore.
@@ -920,7 +919,7 @@ static int ufs_qcom_setup_clocks(struct ufs_hba *hba, bool on,
break;
}
return err;
return 0;
}
static int