fpga: fix repeated word 'if' in comment
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
Signed-off-by Hemanth Selam <[email protected]>
--- drivers/fpga/stratix10-soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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. */ while (count >0 ||s10_free_buffer_count (mgr) !=NUM_SVC_BUFS ) {reinit_completion (&priv->status_return_completion);
Signature · 1 line
2.48.1
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-5Signed-off-by Hemanth Selam <[email protected]>--- drivers/fpga/stratix10-soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/fpga/stratix10-soc.c +0
-0
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