aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/resource.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/resource.c')
-rw-r--r--kernel/resource.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/resource.c b/kernel/resource.c
index 8c527d83ca76..e270b5048988 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -1576,17 +1576,17 @@ static int strict_iomem_checks;
1576 1576
1577/* 1577/*
1578 * check if an address is reserved in the iomem resource tree 1578 * check if an address is reserved in the iomem resource tree
1579 * returns 1 if reserved, 0 if not reserved. 1579 * returns true if reserved, false if not reserved.
1580 */ 1580 */
1581int iomem_is_exclusive(u64 addr) 1581bool iomem_is_exclusive(u64 addr)
1582{ 1582{
1583 struct resource *p = &iomem_resource; 1583 struct resource *p = &iomem_resource;
1584 int err = 0; 1584 bool err = false;
1585 loff_t l; 1585 loff_t l;
1586 int size = PAGE_SIZE; 1586 int size = PAGE_SIZE;
1587 1587
1588 if (!strict_iomem_checks) 1588 if (!strict_iomem_checks)
1589 return 0; 1589 return false;
1590 1590
1591 addr = addr & PAGE_MASK; 1591 addr = addr & PAGE_MASK;
1592 1592
@@ -1609,7 +1609,7 @@ int iomem_is_exclusive(u64 addr)
1609 continue; 1609 continue;
1610 if (IS_ENABLED(CONFIG_IO_STRICT_DEVMEM) 1610 if (IS_ENABLED(CONFIG_IO_STRICT_DEVMEM)
1611 || p->flags & IORESOURCE_EXCLUSIVE) { 1611 || p->flags & IORESOURCE_EXCLUSIVE) {
1612 err = 1; 1612 err = true;
1613 break; 1613 break;
1614 } 1614 }
1615 } 1615 }