提交 339d3261 编写于 作者: J Julia Lawall 提交者: 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: NJulia Lawall <julia@diku.dk>
Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
上级 60b341b7
...@@ -118,7 +118,7 @@ static bool check_device(struct device *dev) ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册