[PATCH 4/6] usermodehelper: ____call_usermodehelper() doesn't needdo_exit()

From: Oleg Nesterov
Date: Tue Feb 14 2012 - 11:55:23 EST


Minor cleanup. ____call_usermodehelper() can simply return, no need
to call do_exit() explicitely.

Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>
---
kernel/kmod.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/kmod.c b/kernel/kmod.c
index 8341de9..685b246 100644
--- a/kernel/kmod.c
+++ b/kernel/kmod.c
@@ -188,7 +188,7 @@ static int ____call_usermodehelper(void *data)
/* Exec failed? */
fail:
sub_info->retval = retval;
- do_exit(0);
+ return 0;
}

void call_usermodehelper_freeinfo(struct subprocess_info *info)
--
1.5.5.1


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/