dmaengine: idma64: use local variable to index descriptor
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 17 Nov 2015 11:37:10 +0000 (13:37 +0200)
committerVinod Koul <vinod.koul@intel.com>
Sat, 5 Dec 2015 08:24:28 +0000 (13:54 +0530)
commit390c49f7174a85d88ec080058d8b5c2e301d3f6b
treea44a74f1ed1659a72ce04a3ed3ffcaf547af1faf
parentac02979413e0310f85bbcc2945d65da7071c08fe
dmaengine: idma64: use local variable to index descriptor

Since a local variable contains the number of hardware desriptors at the
beginning of idma64_desc_fill() we may use it to index the last descriptor as
well.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/idma64.c