projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f6db65
)
iommu/dmar: Remove redundant ' != 0' when check return code
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Thu, 16 Mar 2017 14:23:54 +0000
(16:23 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Wed, 22 Mar 2017 14:42:17 +0000
(15:42 +0100)
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>
drivers/iommu/dmar.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/dmar.c
b/drivers/iommu/dmar.c
index
9a44e20
..
cbf7763
100644
(file)
--- 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)