From: Lucas De Marchi Date: Fri, 10 Jun 2011 05:36:05 +0000 (-0300) Subject: sysctl: remove impossible condition check X-Git-Tag: v3.4-rc1~99^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36885d7b1121c779e4060d45472fe53a5b21e09f;p=pandora-kernel.git 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: Lucas De Marchi Reviewed-by: Jesper Juhl Signed-off-by: Eric W. Biederman --- Reading git-diff-tree failed