iommu/vt-d: Remove set but not used variable
authorLu Baolu <baolu.lu@linux.intel.com>
Fri, 27 Nov 2020 01:33:08 +0000 (09:33 +0800)
committerWill Deacon <will@kernel.org>
Fri, 27 Nov 2020 09:52:28 +0000 (09:52 +0000)
commit405a43cc00471d9f06c58704448f1a43e331826a
tree069d1504e84161d39270717a371823589c6a3fbb
parent58a8bb39490db31acbe8f4e24593a88533b4d947
iommu/vt-d: Remove set but not used variable

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/iommu/intel/iommu.c:5643:27: warning: variable 'last_pfn' set but not used [-Wunused-but-set-variable]
5643 |  unsigned long start_pfn, last_pfn;
     |                           ^~~~~~~~

This variable is never used, so remove it.

Fixes: 2a2b8eaa5b25 ("iommu: Handle freelists when using deferred flushing in iommu drivers")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20201127013308.1833610-1-baolu.lu@linux.intel.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/intel/iommu.c