Skip to contentSkip to conversation

spl: Drop unwanted return in spl_fit_upload_fpga()

PATCH In review Simon Glass 3 participants 3 messages Jan 24, 2023 – Feb 7, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spl: Drop unwanted return in spl_fit_upload_fpga()

This was added by mistake and renders the function useless. Fix it.

Fixes 33c60a38bb9 ("trace: Use notrace for short")

---

 common/spl/spl_fit.c | 1 -
 1 file changed, 1 deletion(-)
common/spl/spl_fit.c +0 -1
index 9ae3e5e35d4..c51482b3b65 100644
@@ -591,7 +591,6 @@ static int spl_fit_upload_fpga(struct spl_fit_info *ctx, int node,
 			debug("Ignoring compatible = %s property\n",
 			      compatible);
 	}
-	return 0;
 
 	ret = fpga_load(devnum, (void *)fpga_image->load_addr,
 			fpga_image->size, BIT_FULL, flags);
Signature · 1 line
2.39.0.246.g2a6d74b583-goog
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Simon Glass

This was added by mistake and renders the function useless. Fix it.

Fixes 33c60a38bb9 ("trace: Use notrace for short")
Quoted 20 lines

---

 common/spl/spl_fit.c | 1 -
 1 file changed, 1 deletion(-)
common/spl/spl_fit.c +0 -2
index 9ae3e5e35d4..c51482b3b65 100644
@@ -591,7 +591,6 @@ static int spl_fit_upload_fpga(struct spl_fit_info *ctx, int node,
                        debug("Ignoring compatible = %s property\n",
                              compatible);
        }
-       return 0;
 
        ret = fpga_load(devnum, (void *)fpga_image->load_addr,
                        fpga_image->size, BIT_FULL, flags);
--

2.39.0.246.g2a6d74b583-goog

Signature · 5 lines
Best regards
Oleksandr

Oleksandr Suvorov
[email protected]