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:
Andy Shevchenko 2017-03-16 16:23:54 +02:00 committed by Joerg Roedel
parent 3f6db6591a
commit f9808079aa
1 changed files with 1 additions and 1 deletions

View File

@ -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)