From: Pranith Kumar Date: Wed, 11 Mar 2015 18:08:19 +0000 (-0400) Subject: audit: Remove condition which always evaluates to false X-Git-Tag: omap-for-v4.1/fixes-rc1~46^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=724e7bfcc566375158219c1454b4b6fc416b2c4a;p=pandora-kernel.git audit: Remove condition which always evaluates to false After commit 3e1d0bb6224f019893d1c498cc3327559d183674 ("audit: Convert int limit uses to u32"), by converting an int to u32, few conditions will always evaluate to false. These warnings were emitted during compilation: kernel/audit.c: In function ‘audit_set_enabled’: kernel/audit.c:347:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] if (state < AUDIT_OFF || state > AUDIT_LOCKED) ^ kernel/audit.c: In function ‘audit_receive_msg’: kernel/audit.c:880:9: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] if (s.backlog_wait_time < 0 || The following patch removes those unnecessary conditions. Signed-off-by: Pranith Kumar Signed-off-by: Paul Moore --- Reading git-diff-tree failed