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

Commit 339d3261 authored by Julia Lawall's avatar Julia Lawall Committed by Joerg Roedel
Browse files

x86/amd-iommu: Remove double NULL check in check_device



dev was tested just above, so drop the second test.

Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 60b341b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -118,7 +118,7 @@ static bool check_device(struct device *dev)
		return false;
		return false;


	/* No device or no PCI device */
	/* No device or no PCI device */
	if (!dev || dev->bus != &pci_bus_type)
	if (dev->bus != &pci_bus_type)
		return false;
		return false;


	devid = get_device_id(dev);
	devid = get_device_id(dev);