iommu/amd: Remove redundant assignment to variable npages
authorColin Ian King <colin.king@canonical.com>
Sat, 11 May 2019 12:41:35 +0000 (13:41 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 27 May 2019 10:02:56 +0000 (12:02 +0200)
commit2dbbcce1f8dd3cd3cbb95717fd73d771a6c60718
treeeece9438500d51279d66f8d0f4d096cf7bcc51e6
parentcd6c84d8f0cdc911df435bb075ba22ce3c605b07
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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c