From: zhangdianfang Date: Fri, 30 May 2014 00:37:28 +0000 (+0800) Subject: tools/liblockdep: Fix comparison of a boolean value with a value of 2 X-Git-Tag: omap-for-v3.17/fixes-against-rc2~262^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c642e442e99af1ca026af55a16f23b5f8ee612a;p=pandora-kernel.git tools/liblockdep: Fix comparison of a boolean value with a value of 2 Comparison of a boolean value (!__init_state) with a value of 2 (done) as currently happens in the code is unlikely to succeed and causes repeated initialization of the pthread function pointers. Instead, remove boolean comparison so that we would initialize said function pointers only once. Ref: https://bugzilla.kernel.org/show_bug.cgi?id=76741 Cc: Jean Delvare Reported-by: David Binderman Signed-off-by: Dianfang Zhang Signed-off-by: Sasha Levin --- Reading git-diff-tree failed