Skip to contentSkip to conversation

Cleanup pre_restore_task comments

PATCH In review Matt Helsley 2 participants 2 messages Oct 14, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 Cleanup pre_restore_task comments

We don't need to include the name of the function in the comment unless it's a kerneldoc comment -- it's redundant. Also the comment before post_restore_task() was copy-pasted without modification.

---
 checkpoint/process.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
checkpoint/process.c +1 -2
index c51e036..17c08e8 100644
@@ -814,7 +814,7 @@ static int restore_task_pgid(struct ckpt_ctx *ctx)
 	return ret;
 }
 
-/* pre_restore_task - prepare the task for restore */
+/* prepare the task for restore */
 int pre_restore_task(struct ckpt_ctx *ctx)
 {
 	sigset_t sigset;
@@ -844,7 +844,6 @@ int pre_restore_task(struct ckpt_ctx *ctx)
 	return 0;
 }
 
-/* pre_restore_task - prepare the task for restore */
 void post_restore_task(struct ckpt_ctx *ctx)
 {
 	/* can happen if restart failed early */
Signature · 1 line
1.5.6.3

A message that is not in the archive (sent off-list or not yet received): 1255481585-32625-2-git-send-email-matthltc-r/[email protected]

#2 lore raw

Ok, pulled.

Quoted 30 lines · Matt Helsley

We don't need to include the name of the function in the comment unless it's a kerneldoc comment -- it's redundant. Also the comment before post_restore_task() was copy-pasted without modification.

---
 checkpoint/process.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
checkpoint/process.c +1 -2
index c51e036..17c08e8 100644
@@ -814,7 +814,7 @@ static int restore_task_pgid(struct ckpt_ctx *ctx)
 	return ret;
 }
 
-/* pre_restore_task - prepare the task for restore */
+/* prepare the task for restore */
 int pre_restore_task(struct ckpt_ctx *ctx)
 {
 	sigset_t sigset;
@@ -844,7 +844,6 @@ int pre_restore_task(struct ckpt_ctx *ctx)
 	return 0;
 }
 
-/* pre_restore_task - prepare the task for restore */
 void post_restore_task(struct ckpt_ctx *ctx)
 {
 	/* can happen if restart failed early */