Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2dbbcce1 authored by Colin Ian King's avatar Colin Ian King Committed by Joerg Roedel
Browse files

iommu/amd: Remove redundant assignment to variable npages



The variable npages is being initialized however this is never read and
later it is being reassigned to a new value. The initialization is
redundant and hence can be removed.

Addresses-Coverity: ("Unused Value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent cd6c84d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2609,7 +2609,7 @@ static void unmap_sg(struct device *dev, struct scatterlist *sglist,
	struct protection_domain *domain;
	struct dma_ops_domain *dma_dom;
	unsigned long startaddr;
	int npages = 2;
	int npages;

	domain = get_domain(dev);
	if (IS_ERR(domain))