scatterlist: reorder compound boolean expression
authorGilad Ben-Yossef <gilad@benyossef.com>
Mon, 27 Feb 2017 22:28:27 +0000 (14:28 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 28 Feb 2017 02:43:46 +0000 (18:43 -0800)
commit1d5210ef706523529d3cc16fd70be0a466253466
treedf71a8925d056f4a7ac94077b6b3f86a5d10c0e2
parent95e91b831f87ac8e1f8ed50c14d709089b4e01b8
scatterlist: reorder compound boolean expression

Test the cheaper boolean expression with no side effects first.

Link: http://lkml.kernel.org/r/1486040150-14109-2-git-send-email-gilad@benyossef.com
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: <ofir.drang@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/scatterlist.c