projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9d73bf
)
scsi: ufs: ufs-qcom: Remove unneeded variable 'err'
author
ChanWoo Lee
<cw9316.lee@samsung.com>
Tue, 7 Sep 2021 04:41:11 +0000
(13:41 +0900)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Wed, 15 Sep 2021 03:38:58 +0000
(23:38 -0400)
'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>
drivers/scsi/ufs/ufs-qcom.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/ufs/ufs-qcom.c
b/drivers/scsi/ufs/ufs-qcom.c
index
9d9770f
..
92d4c61
100644
(file)
--- 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