summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/irq_remapping.c
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2015-08-13 11:13:17 +0200
committerJoerg Roedel <jroedel@suse.de>2015-08-13 19:49:41 +0200
commit30e93761fbf706c0f8a6f7d1abc1b0ddbeea208c (patch)
treeff631402dd5fd717319a6a21995641546ca30b03 /drivers/iommu/irq_remapping.c
parentiommu/vt-d: Avoid duplicate device_domain_info structures (diff)
downloadlinux-30e93761fbf706c0f8a6f7d1abc1b0ddbeea208c.tar.xz
linux-30e93761fbf706c0f8a6f7d1abc1b0ddbeea208c.zip
iommu/vt-d: Return false instead of 0 in irq_remapping_cap()
The function return type is bool, so return false instead of 0. Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/irq_remapping.c')
-rw-r--r--drivers/iommu/irq_remapping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu/irq_remapping.c
index 2d9993062ded..913455a5fd40 100644
--- a/drivers/iommu/irq_remapping.c
+++ b/drivers/iommu/irq_remapping.c
@@ -84,7 +84,7 @@ void set_irq_remapping_broken(void)
bool irq_remapping_cap(enum irq_remap_cap cap)
{
if (!remap_ops || disable_irq_post)
- return 0;
+ return false;
return (remap_ops->capability & (1 << cap));
}