From: Oleg Nesterov Date: Fri, 23 Mar 2012 22:02:49 +0000 (-0700) Subject: usermodehelper: ____call_usermodehelper() doesn't need do_exit() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5b9bd473e3b8a8c6c4ae99be475e6e9b27568555;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git usermodehelper: ____call_usermodehelper() doesn't need do_exit() Minor cleanup. ____call_usermodehelper() can simply return, no need to call do_exit() explicitely. Signed-off-by: Oleg Nesterov Cc: Tetsuo Handa Cc: Rusty Russell Cc: Tejun Heo Cc: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/kmod.c b/kernel/kmod.c index 8341de91613f..685b246b13b0 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)