Skip to content

Commit

Permalink
usermodehelper: ____call_usermodehelper() doesn't need do_exit()
Browse files Browse the repository at this point in the history
Minor cleanup.  ____call_usermodehelper() can simply return, no need to
call do_exit() explicitely.

Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Tetsuo Handa <[email protected]>
Cc: Rusty Russell <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
oleg-nesterov authored and torvalds committed Mar 23, 2012
1 parent 9d944ef commit 5b9bd47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/kmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5b9bd47

Please sign in to comment.