drivers: fpga: arria10: Remove unreachable code.
PATCH v2 1/1 drivers: fpga: arria10: Remove unreachable code.
From: Dinesh Maniyam <[email protected]>
The schedule() call after the break statement is unreachable. Remove the dead code as it has no functional impact.
Signed-off-by Dinesh Maniyam <[email protected]>
--- drivers/fpga/socfpga_arria10.c | 2 -- 1 file changed, 2 deletions(-)
drivers/fpga/socfpga_arria10.c +0 -2
@@ -532,8 +532,6 @@ static void get_rbf_image_info(struct rbf_info *rbf, u16 *buffer) rbf->section = unknown;break ; - -schedule (); } }
Signature · 1 line
2.43.7
Quoted 15 lines · On 15/4/2026 1:17 pm, [email protected] wrote:
From: Dinesh Maniyam <[email protected]>
The
schedule()call after the break statement is unreachable. Remove the dead code as it has no functional impact.Signed-off-by Dinesh Maniyam <[email protected]>--- drivers/fpga/socfpga_arria10.c | 2 -- 1 file changed, 2 deletions(-)drivers/fpga/socfpga_arria10.c +0
-0
drivers/fpga/socfpga_arria10.c static void get_rbf_image_info(struct rbf_info *rbf, u16 *buffer) · line 537
Quoted 8 lines
drivers/fpga/socfpga_arria10.c +0
-2@@ -532,8 +532,6 @@ static void get_rbf_image_info(struct rbf_info *rbf, u16 *buffer) rbf->section = unknown;break ; - -schedule (); } }
Reviewed-by Tien Fong Chee <[email protected]>
Best regards,
Tien Fong