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

Commit ae162efb authored by Joerg Roedel's avatar Joerg Roedel
Browse files

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: default avatarkbuild test robot <fengguang.wu@intel.com>
Acked-by: default avatarBaoquan He <bhe@redhat.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 20b46dff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -854,7 +854,7 @@ static int get_dev_entry_bit(u16 devid, u8 bit)

static bool copy_device_table(void)
{
	u64 int_ctl, int_tab_len, entry, last_entry = 0;
	u64 int_ctl, int_tab_len, entry = 0, last_entry = 0;
	struct dev_table_entry *old_devtb = NULL;
	u32 lo, hi, devid, old_devtb_size;
	phys_addr_t old_devtb_phys;