summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/nvrm/io/ap15/rm_spi_slink.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/nvrm/io/ap15/rm_spi_slink.c b/arch/arm/mach-tegra/nvrm/io/ap15/rm_spi_slink.c
index d2ed962c6b3f..59cd15dae155 100644
--- a/arch/arm/mach-tegra/nvrm/io/ap15/rm_spi_slink.c
+++ b/arch/arm/mach-tegra/nvrm/io/ap15/rm_spi_slink.c
@@ -661,11 +661,12 @@ WaitForTransferCompletion(
{
if (hRmSpiSlink->CurrentDirection & SerialHwDataFlow_Rx)
{
+ NvError DmaError;
// Get the Rx transfer count transferred by Dma.
- Error = NvRmDmaGetTransferredCount(hRmSpiSlink->hRmRxDma,
+ DmaError = NvRmDmaGetTransferredCount(hRmSpiSlink->hRmRxDma,
&DmaRxTransferCountBytes, NV_TRUE);
- NV_ASSERT(Error == NvSuccess);
- if (Error != NvSuccess)
+ NV_ASSERT(DmaError == NvSuccess);
+ if (DmaError != NvSuccess)
DmaRxTransferCountBytes = 0;
PacketTransferedFromFifoYet = (DmaRxTransferCountBytes >> 2) *
hRmSpiSlink->CurrTransInfo.PacketsPerWord;