Skip to contentSkip to conversation

fpga: fix repeated word 'if' in comment

PATCH In review Hemanth Selam 2 participants 2 messages Sep 4 – Sep 6 FPGA manager framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fpga: fix repeated word 'if' in comment

Drop the second 'if', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.

Assisted-by Cursor:claude-opus-5
---
 drivers/fpga/stratix10-soc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/fpga/stratix10-soc.c +1 -1
index b8ec2e6f615f..c08d60e3c85f 100644
@@ -286,7 +286,7 @@ static int s10_ops_write(struct fpga_manager *mgr, const char *buf,
 
 	/*
 	 * Loop waiting for buffers to be returned.  When a buffer is returned,
-	 * reuse it to send more data or free if if all data has been sent.
+	 * reuse it to send more data or free if all data has been sent.
 	 */
 	while (count > 0 || s10_free_buffer_count(mgr) != NUM_SVC_BUFS) {
 		reinit_completion(&priv->status_return_completion);
Signature · 1 line
2.48.1
#1 lore raw
Quoted 14 lines · Hemanth Selam

Drop the second 'if', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.

Assisted-by Cursor:claude-opus-5
---
 drivers/fpga/stratix10-soc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/fpga/stratix10-soc.c +0 -0
index b8ec2e6f615f..c08d60e3c85f 100644

drivers/fpga/stratix10-soc.c static int s10_ops_write(struct fpga_manager *mgr, const char *buf, · line 289

Quoted 5 lines
drivers/fpga/stratix10-soc.c +1 -1
@@ -286,7 +286,7 @@ static int s10_ops_write(struct fpga_manager *mgr, const char *buf,
 
 	/*
 	 * Loop waiting for buffers to be returned.  When a buffer is returned,
-	 * reuse it to send more data or free if if all data has been sent.
+	 * reuse it to send more data or free if all data has been sent.

The actual fix should probably be "free it if ...“, right?

Quoted 7 lines
drivers/fpga/stratix10-soc.c +0 -0
 	 */
 	while (count > 0 || s10_free_buffer_count(mgr) != NUM_SVC_BUFS) {
 		reinit_completion(&priv->status_return_completion);
Signature · 1 line
2.48.1