Skip to content
Commit 36885d7b authored by Lucas De Marchi's avatar Lucas De Marchi Committed by Eric W. Biederman
Browse files

sysctl: remove impossible condition check



Remove checks for conditions that will never happen. If procname is NULL
the loop would already had bailed out, so there's no need to check it
again.

At the same time this also compacts the function find_in_table() by
refactoring it to be easier to read.

Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@profusion.mobi>
Reviewed-by: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
parent dcd6c922
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment