From: Dmitry Kasatkin Date: Fri, 22 Aug 2014 06:43:55 +0000 (+0300) Subject: ima: simplify conditional statement to improve performance X-Git-Tag: fixes-against-v3.18-rc2~106^2~12^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f68c05f4d2d4e19c40f4ac1e769cc0a2f9f544a0;p=pandora-kernel.git ima: simplify conditional statement to improve performance Precede bit testing before string comparison makes code faster. Also refactor statement as a single line pointer assignment. Logic is following: we set 'xattr_ptr' to read xattr value when we will do appraisal or in any case when measurement template is other than 'ima'. Signed-off-by: Dmitry Kasatkin Signed-off-by: Mimi Zohar --- Reading git-diff-tree failed