Skip to content
Commit 39835204 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Andrew Morton
Browse files

__kill_pgrp_info: simplify the calculation of return value

No need to calculate/check the "success" variable, we can kill it and update
retval in the main loop unless it is zero.

Link: https://lkml.kernel.org/r/20230823171455.GA12188@redhat.com


Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Suggested-by: default avatarDavid Laight <David.Laight@ACULAB.COM>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 8e1f3851
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment