]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmaengine: ioatdma: loop for number elements in array chanerr_str
authorColin Ian King <colin.king@canonical.com>
Sun, 16 Oct 2016 12:25:47 +0000 (13:25 +0100)
committerVinod Koul <vinod.koul@intel.com>
Wed, 19 Oct 2016 14:47:01 +0000 (20:17 +0530)
commit1b7794163ab35a06b32b04ff558819ebb684b1c2
treed3f275f7208f09f5795ea55080bba252bfe4566a
parent1001354ca34179f3db924eb66672442a173147dc
dmaengine: ioatdma: loop for number elements in array chanerr_str

Just iterate over the number of elements in array chanerr_str rather
than for all 32 bits.  This removes the need for a NULL chanerr_str[i]
check which could possibly overrun if the upper bits (28..31) of
chanerr are set and 27th bit in chanerr is zero. This simplifies the
code by removing an if statement and a break.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ioat/dma.c