From: Roel Kluin Date: Sat, 13 Feb 2010 14:54:03 +0000 (+0100) Subject: iop-adma: redundant/wrong tests in iop_*_count()? X-Git-Tag: v2.6.34-rc1~204^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1acb878b6070941e844dfc4ca1b3b9e5a70426c;p=pandora-kernel.git iop-adma: redundant/wrong tests in iop_*_count()? When we reach the loop, len is at least 1, we only stay in the loop when len is at least MAX_BYTE_COUNT + 1, MAX_BYTE_COUNT is subtracted in each iteration. So when we leave the loop, or didn't take it, len is at least 1. Testing whether len is non-zero appears redundant. Signed-off-by: Roel Kluin Signed-off-by: Dan Williams --- Reading git-diff-tree failed