iommu/dmar: Remove redundant ' != 0' when check return code
Usual pattern when we check for return code, which might be negative errno, is either (ret) or (!ret). Remove extra ' != 0' from condition. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
3f6db6591a
commit
f9808079aa
|
@ -311,7 +311,7 @@ static int dmar_pci_bus_add_dev(struct dmar_pci_notify_info *info)
|
||||||
((void *)drhd) + drhd->header.length,
|
((void *)drhd) + drhd->header.length,
|
||||||
dmaru->segment,
|
dmaru->segment,
|
||||||
dmaru->devices, dmaru->devices_cnt);
|
dmaru->devices, dmaru->devices_cnt);
|
||||||
if (ret != 0)
|
if (ret)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ret >= 0)
|
if (ret >= 0)
|
||||||
|
|
Loading…
Reference in New Issue