Skip to contentSkip to conversation

tty/ldsem: Fix syntax errors in comments

PATCH In review Xiang wangx 2 participants 2 messages Dec 5, 2021 – Dec 8, 2021 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tty/ldsem: Fix syntax errors in comments

Delete the redundant word 'are'

---
 drivers/tty/tty_ldsem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/tty_ldsem.c +1 -1
index ce8291053af3..3be428c16260 100644
@@ -163,7 +163,7 @@ down_read_failed(struct ld_semaphore *sem, long count, long timeout)
 
 	/*
 	 * Try to reverse the lock attempt but if the count has changed
-	 * so that reversing fails, check if there are are no waiters,
+	 * so that reversing fails, check if there are no waiters,
 	 * and early-out if not
 	 */
 	do {
Signature · 1 line
2.20.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Xiang wangx

Delete the redundant word 'are'

Maybe you can add also a period to the end of the sentence.

Quoted 18 lines
---
  drivers/tty/tty_ldsem.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/tty_ldsem.c +1 -1
index ce8291053af3..3be428c16260 100644
@@ -163,7 +163,7 @@ down_read_failed(struct ld_semaphore *sem, long count, long timeout)
 
  	/*
  	 * Try to reverse the lock attempt but if the count has changed
-	 * so that reversing fails, check if there are are no waiters,
+	 * so that reversing fails, check if there are no waiters,
  	 * and early-out if not
  	 */
  	do {
Signature · 1 line
js