[PATCH] kthread: fix spelling typo and grammar in comments

From: Prathu Baronia
Date: Tue May 02 2023 - 05:03:18 EST


- `If present` -> `If present,'
- `reuturn` -> `return`
- `function exit safely` -> `function to exit safely`

Signed-off-by: Prathu Baronia <quic_pbaronia@xxxxxxxxxxx>
---
kernel/kthread.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/kthread.c b/kernel/kthread.c
index 7e6751b29101..d7fd133f63dd 100644
--- a/kernel/kthread.c
+++ b/kernel/kthread.c
@@ -311,10 +311,10 @@ void __noreturn kthread_exit(long result)
* @comp: Completion to complete
* @code: The integer value to return to kthread_stop().
*
- * If present complete @comp and the reuturn code to kthread_stop().
+ * If present, complete @comp and then return code to kthread_stop().
*
* A kernel thread whose module may be removed after the completion of
- * @comp can use this function exit safely.
+ * @comp can use this function to exit safely.
*
* Does not return.
*/
--
2.25.1