diff mbox series

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

Message ID 20210907044111.29632-1-cw9316.lee@samsung.com (mailing list archive)
State Not Applicable
Headers show
Series scsi: ufs-qcom: Remove unneeded variable 'err' | expand

Commit Message

Chanwoo Lee Sept. 7, 2021, 4:41 a.m. UTC
From: ChanWoo Lee <cw9316.lee@samsung.com>

'err' is not used.
So i remove the unneeded variable.

Signed-off-by: ChanWoo Lee <cw9316.lee@samsung.com>
---
 drivers/scsi/ufs/ufs-qcom.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Martin K. Petersen Sept. 15, 2021, 2:44 a.m. UTC | #1
Chanwoo,

> 'err' is not used.  So i remove the unneeded variable.

Applied to 5.16/scsi-staging, thanks!
Martin K. Petersen Sept. 22, 2021, 4:45 a.m. UTC | #2
On Tue, 7 Sep 2021 13:41:11 +0900, Chanwoo Lee wrote:

> From: ChanWoo Lee <cw9316.lee@samsung.com>
> 
> 'err' is not used.
> So i remove the unneeded variable.
> 
> 

Applied to 5.16/scsi-queue, thanks!

[1/1] scsi: ufs-qcom: Remove unneeded variable 'err'
      https://git.kernel.org/mkp/scsi/c/c4adf171e834
diff mbox series

Patch

diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c
index 9d9770f1db4f..92d4c61fc9d0 100644
--- a/drivers/scsi/ufs/ufs-qcom.c
+++ b/drivers/scsi/ufs/ufs-qcom.c
@@ -888,7 +888,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.
@@ -916,7 +915,7 @@  static int ufs_qcom_setup_clocks(struct ufs_hba *hba, bool on,
 		break;
 	}
 
-	return err;
+	return 0;
 }
 
 static int