Skip to contentSkip to conversation

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

PATCH Applied Chanwoo Lee 2 participants 3 messages Sep 7, 2021 – Sep 22, 2021 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20210907044846epcas1p297b8ef121290fc3265cf9dc3eadc44de@epcas1p2.samsung.com

#1 lore raw

PATCH 1/1 scsi: ufs-qcom: Remove unneeded variable 'err'

From: ChanWoo Lee <[email protected]>

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

---
 drivers/scsi/ufs/ufs-qcom.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/ufs/ufs-qcom.c +1 -2
index 9d9770f1db4f..92d4c61fc9d0 100644
@@ -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
Signature · 1 line
2.29.0
#2 lore raw

Chanwoo,

Quoted 1 line

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

Applied to 5.16/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering