Skip to content
Commit 811d6a92 authored by Vinod Koul's avatar Vinod Koul
Browse files

dmaengine: mediatek: drop unused variable



Commit 157ae5ff dmaengine: mediatek: Fix a possible deadlock error
in mtk_cqdma_tx_status() fixed locks but kept unused varibale leading to
warning and build failure (due to warning treated as errors)

drivers/dma/mediatek/mtk-cqdma.c: In function 'mtk_cqdma_find_active_desc':
drivers/dma/mediatek/mtk-cqdma.c:423:23: error: unused variable 'flags' [-Werror=unused-variable]
  423 |         unsigned long flags;
      |                       ^~~~~

Fix by dropping this unused flag

Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Fixes: 157ae5ff ("dmaengine: mediatek: Fix a possible deadlock error in mtk_cqdma_tx_status()")
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 5e27af05
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment