iommu/amd: Fix compiler warning in copy_device_table()
authorJoerg Roedel <jroedel@suse.de>
Fri, 18 Aug 2017 22:28:02 +0000 (00:28 +0200)
committerJoerg Roedel <jroedel@suse.de>
Sat, 19 Aug 2017 08:33:42 +0000 (10:33 +0200)
commitae162efbf2870c326e06b4f905423fb888f9cd2a
treef48c85d6d508d5ba7879d6250386fc62c8ba5a6b
parent20b46dff13bd1d250dc968b318f0fac3c996b3fa
iommu/amd: Fix compiler warning in copy_device_table()

This was reported by the kbuild bot. The condition in which
entry would be used uninitialized can not happen, because
when there is no iommu this function would never be called.
But its no fast-path, so fix the warning anyway.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Acked-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu_init.c