diff options
author | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2023-05-17 14:46:34 +0300 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-05-27 06:56:54 +0300 |
commit | 3d49f7406b5d9822c1411c6658bac2ae55ba19a2 (patch) | |
tree | 2c08817d970c2ce434e9dac69feae40529e89468 /drivers/edac/qcom_edac.c | |
parent | b317cebff59d9994ba041240654acb3c06b2f1f0 (diff) | |
download | linux-3d49f7406b5d9822c1411c6658bac2ae55ba19a2.tar.xz |
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 <manivannan.sadhasivam@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230517114635.76358-2-manivannan.sadhasivam@linaro.org
Diffstat (limited to 'drivers/edac/qcom_edac.c')
-rw-r--r-- | drivers/edac/qcom_edac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/qcom_edac.c b/drivers/edac/qcom_edac.c index 265e0fb39bc7..6140001f21c4 100644 --- a/drivers/edac/qcom_edac.c +++ b/drivers/edac/qcom_edac.c @@ -170,7 +170,7 @@ static int qcom_llcc_core_setup(struct regmap *llcc_bcast_regmap) static int qcom_llcc_clear_error_status(int err_type, struct llcc_drv_data *drv) { - int ret = 0; + int ret; switch (err_type) { case LLCC_DRAM_CE: |