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

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
......@@ -118,7 +118,7 @@ static bool check_device(struct device *dev)
return false;
/* No device or no PCI device */
if (!dev || dev->bus != &pci_bus_type)
if (dev->bus != &pci_bus_type)
return false;
devid = get_device_id(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment