dmaengine: idxd: Fix warning for deadcode.deadstore
authorAnil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Wed, 21 May 2025 23:13:31 +0000 (19:13 -0400)
committerVinod Koul <vkoul@kernel.org>
Thu, 26 Jun 2025 22:33:22 +0000 (15:33 -0700)
commit8c2442663f683f4fabadb3c491821169da6c89a8
tree92738dea0bbfdc003d6ace5812abe7716328cf1f
parenta0b1589b62e2fcfb112996e0f4d5593bd2edf069
dmaengine: idxd: Fix warning for deadcode.deadstore

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;
      |                        ^~~   ~~~~~~~~~~~~~~~~

Signed-off-by: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20250521231331.889204-1-anil.s.keshavamurthy@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/init.c