[PATCH 4/9] iommu/vt-d: Return false instead of 0 in irq_remapping_cap()
From: Joerg Roedel
Date: Thu Aug 13 2015 - 13:34:52 EST
From: Joerg Roedel <jroedel@xxxxxxx>
The function return type is bool, so return false instead
of 0.
Signed-off-by: Joerg Roedel <jroedel@xxxxxxx>
---
drivers/iommu/irq_remapping.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu/irq_remapping.c
index 2d99930..913455a 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));
}
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/