Skip to contentSkip to conversation

RDMA/hw/hfi1/pio_copy: Fix syntax errors in comments

PATCH Superseded Xiang wangx 2 participants 2 messages Jun 5, 2022 – Jun 6, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RDMA/hw/hfi1/pio_copy: Fix syntax errors in comments

Delete the redundant word 'and'.

---
 drivers/infiniband/hw/hfi1/pio_copy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/hfi1/pio_copy.c +1 -1
index 136f9a99e1e0..7690f996d5e3 100644
@@ -172,7 +172,7 @@ static inline void jcopy(u8 *dest, const u8 *src, u32 n)
 }
 
 /*
- * Read nbytes from "from" and and place them in the low bytes
+ * Read nbytes from "from" and place them in the low bytes
  * of pbuf->carry.  Other bytes are left as-is.  Any previous
  * value in pbuf->carry is lost.
  *
Signature · 1 line
2.36.1
#1 lore raw
Quoted 12 lines · Xiang wangx

Delete the redundant word 'and'.

---
 drivers/infiniband/hw/hfi1/pio_copy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/hfi1/pio_copy.c +0 -0
index 136f9a99e1e0..7690f996d5e3 100644

drivers/infiniband/hw/hfi1/pio_copy.c static inline void jcopy(u8 *dest, const u8 *src, u32 n) · line 178

Quoted 8 lines
drivers/infiniband/hw/hfi1/pio_copy.c +1 -1
@@ -172,7 +172,7 @@ static inline void jcopy(u8 *dest, const u8 *src, u32 n)
 }
 
 /*
- * Read nbytes from "from" and and place them in the low bytes
+ * Read nbytes from "from" and place them in the low bytes
  * of pbuf->carry.  Other bytes are left as-is.  Any previous
  * value in pbuf->carry is lost.
  *

Don't know that I would call this a "syntax" error. Perhaps change subject to say "Fix typo in comment"

-Denny