Re: [PATCH] dmaengine: idxd: Fix warning for deadcode.deadstore
From: Vinod Koul
Date: Thu Jun 26 2025 - 18:50:06 EST
On Wed, 21 May 2025 19:13:31 -0400, Anil S Keshavamurthy wrote:
> Deletes the second initialization as the value stored to 'dev' during
> its initialization (struct device *dev = &idxd->pdev->dev;) is
> sufficient.
>
> ../drivers/dma/idxd/init.c:988:17: warning: Value stored to 'dev' during
> its initialization is never read [deadcode.DeadStores]
> 988 | struct device *dev = &idxd->pdev->dev;
> | ^~~ ~~~~~~~~~~~~~~~~
>
> [...]
Applied, thanks!
[1/1] dmaengine: idxd: Fix warning for deadcode.deadstore
commit: 8c2442663f683f4fabadb3c491821169da6c89a8
Best regards,
--
~Vinod