Skip to contentSkip to conversation

drivers: fpga: arria10: Remove unreachable code.

PATCH In review [email protected] 2 participants 2 messages Apr 15 – Apr 30 FPGA manager framework

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/fpga/socfpga_arria10.c | 2 --
 1 file changed, 2 deletions(-)
drivers/fpga/socfpga_arria10.c +0 -2
index e9822b2bb0e..b85cc3e076d 100644
@@ -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
Reviewed-by on v2 1/1
#1 lore raw
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.

---
  drivers/fpga/socfpga_arria10.c | 2 --
  1 file changed, 2 deletions(-)
drivers/fpga/socfpga_arria10.c +0 -0
index e9822b2bb0e..b85cc3e076d 100644

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();
  	}
  }
 

Best regards,
Tien Fong