Skip to content

Commit

Permalink
iommu/vt-d: Return false instead of 0 in irq_remapping_cap()
Browse files Browse the repository at this point in the history
The function return type is bool, so return false instead
of 0.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Joerg Roedel committed Aug 13, 2015
1 parent f303e50 commit 30e9376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/irq_remapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 30e9376

Please sign in to comment.