aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2023-08-23 19:14:55 +0200
committerAndrew Morton <[email protected]>2023-10-04 10:41:56 -0700
commit398352049146e34ec6113a00c63457149a81345c (patch)
tree046b0fbe2abe8e4dfd9f71a7094e484f91c38e06 /rust/helpers/helpers.c
parent8e1f385104ac044f1552686ad6e1cbc71cc05a30 (diff)
__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/[email protected] Signed-off-by: Oleg Nesterov <[email protected]> Suggested-by: David Laight <[email protected]> Cc: Eric W. Biederman <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions