From: Andy Shevchenko Date: Thu, 16 Mar 2017 14:23:54 +0000 (+0200) Subject: iommu/dmar: Remove redundant ' != 0' when check return code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f9808079aa7626d71215a71661dbed5c4ff101d2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c index 9a44e20d7d88..cbf7763d8091 100644 --- a/drivers/iommu/dmar.c +++ b/drivers/iommu/dmar.c @@ -311,7 +311,7 @@ static int dmar_pci_bus_add_dev(struct dmar_pci_notify_info *info) ((void *)drhd) + drhd->header.length, dmaru->segment, dmaru->devices, dmaru->devices_cnt); - if (ret != 0) + if (ret) break; } if (ret >= 0)