Skip to contentSkip to conversation

ipc/sem.c: Couple of spelling fixes

PATCH Applied Bhaskar Chowdhury 2 participants 2 messages Mar 19, 2021 – Mar 20, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipc/sem.c: Couple of spelling fixes

s/purpuse/purpose/
s/seperately/separately/

---
 ipc/sem.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
ipc/sem.c +2 -2
index f6c30a85dadf..780d75eff8c6 100644
@@ -786,7 +786,7 @@ static inline void wake_up_sem_queue_prepare(struct sem_queue *q, int error,
 {
 	get_task_struct(q->sleeper);
 
-	/* see SEM_BARRIER_2 for purpuse/pairing */
+	/* see SEM_BARRIER_2 for purpose/pairing */
 	smp_store_release(&q->status, error);
 
 	wake_q_add_safe(wake_q, q->sleeper);
@@ -821,7 +821,7 @@ static inline int check_restart(struct sem_array *sma, struct sem_queue *q)
 
 	/* It is impossible that someone waits for the new value:
 	 * - complex operations always restart.
-	 * - wait-for-zero are handled seperately.
+	 * - wait-for-zero are handled separately.
 	 * - q is a previously sleeping simple operation that
 	 *   altered the array. It must be a decrement, because
 	 *   simple increments never sleep.

--
2.26.2

Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Bhaskar Chowdhury

s/purpuse/purpose/
s/seperately/separately/

Quoted 30 lines

---
ipc/sem.c | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
ipc/sem.c +2 -3
index f6c30a85dadf..780d75eff8c6 100644
@@ -786,7 +786,7 @@ static inline void wake_up_sem_queue_prepare(struct sem_queue *q, int error,
 {
 	get_task_struct(q->sleeper);
 
-	/* see SEM_BARRIER_2 for purpuse/pairing */
+	/* see SEM_BARRIER_2 for purpose/pairing */
 	smp_store_release(&q->status, error);
 
 	wake_q_add_safe(wake_q, q->sleeper);
@@ -821,7 +821,7 @@ static inline int check_restart(struct sem_array *sma, struct sem_queue *q)
 
 	/* It is impossible that someone waits for the new value:
 	 * - complex operations always restart.
-	 * - wait-for-zero are handled seperately.
+	 * - wait-for-zero are handled separately.
 	 * - q is a previously sleeping simple operation that
 	 *   altered the array. It must be a decrement, because
 	 *   simple increments never sleep.
--

2.26.2