Skip to content

Commit 3d49f74

Browse files
Mani-Sadhasivamandersson
authored andcommitted
EDAC/qcom: Remove superfluous return variable assignment in qcom_llcc_core_setup()
"ret" variable will be assigned on both success and failure cases. So there is no need to initialize it during start of qcom_llcc_core_setup(). Signed-off-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b317ceb commit 3d49f74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/edac/qcom_edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static int qcom_llcc_core_setup(struct regmap *llcc_bcast_regmap)
170170
static int
171171
qcom_llcc_clear_error_status(int err_type, struct llcc_drv_data *drv)
172172
{
173-
int ret = 0;
173+
int ret;
174174

175175
switch (err_type) {
176176
case LLCC_DRAM_CE:

0 commit comments

Comments
 (0)