Skip to content

Commit 8c24426

Browse files
anilskeshavamurthyvinodkoul
authored andcommitted
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 <[email protected]> Reviewed-by: Dave Jiang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent a0b1589 commit 8c24426

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/dma/idxd/init.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,6 @@ static void idxd_reset_prepare(struct pci_dev *pdev)
10361036
const char *idxd_name;
10371037
int rc;
10381038

1039-
dev = &idxd->pdev->dev;
10401039
idxd_name = dev_name(idxd_confdev(idxd));
10411040

10421041
struct idxd_saved_states *idxd_saved __free(kfree) =

0 commit comments

Comments
 (0)