* [PATCH] scsi: ufs-qcom: Remove unneeded variable 'err' [not found] <CGME20210907044846epcas1p297b8ef121290fc3265cf9dc3eadc44de@epcas1p2.samsung.com> @ 2021-09-07 4:41 ` Chanwoo Lee 2021-09-15 2:44 ` Martin K. Petersen 2021-09-22 4:45 ` Martin K. Petersen 0 siblings, 2 replies; 3+ messages in thread From: Chanwoo Lee @ 2021-09-07 4:41 UTC (permalink / raw) To: agross, bjorn.andersson, alim.akhtar, avri.altman, jejb, martin.petersen, linux-arm-msm, linux-scsi, linux-kernel Cc: grant.jung, jt77.jang, dh0421.hwang, sh043.lee, ChanWoo Lee 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(-) 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 -- 2.29.0 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: ufs-qcom: Remove unneeded variable 'err' 2021-09-07 4:41 ` [PATCH] scsi: ufs-qcom: Remove unneeded variable 'err' Chanwoo Lee @ 2021-09-15 2:44 ` Martin K. Petersen 2021-09-22 4:45 ` Martin K. Petersen 1 sibling, 0 replies; 3+ messages in thread From: Martin K. Petersen @ 2021-09-15 2:44 UTC (permalink / raw) To: Chanwoo Lee Cc: agross, bjorn.andersson, alim.akhtar, avri.altman, jejb, martin.petersen, linux-arm-msm, linux-scsi, linux-kernel, grant.jung, jt77.jang, dh0421.hwang, sh043.lee Chanwoo, > 'err' is not used. So i remove the unneeded variable. Applied to 5.16/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: ufs-qcom: Remove unneeded variable 'err' 2021-09-07 4:41 ` [PATCH] scsi: ufs-qcom: Remove unneeded variable 'err' Chanwoo Lee 2021-09-15 2:44 ` Martin K. Petersen @ 2021-09-22 4:45 ` Martin K. Petersen 1 sibling, 0 replies; 3+ messages in thread From: Martin K. Petersen @ 2021-09-22 4:45 UTC (permalink / raw) To: linux-scsi, linux-kernel, agross, alim.akhtar, avri.altman, jejb, linux-arm-msm, bjorn.andersson, Chanwoo Lee Cc: Martin K . Petersen, grant.jung, dh0421.hwang, jt77.jang, sh043.lee 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 -- Martin K. Petersen Oracle Linux Engineering ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-09-22 4:45 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <CGME20210907044846epcas1p297b8ef121290fc3265cf9dc3eadc44de@epcas1p2.samsung.com> 2021-09-07 4:41 ` [PATCH] scsi: ufs-qcom: Remove unneeded variable 'err' Chanwoo Lee 2021-09-15 2:44 ` Martin K. Petersen 2021-09-22 4:45 ` Martin K. Petersen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).