Changeset c81132d in mainline for kernel


Ignore:
Timestamp:
2017-12-09T21:25:14Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1afa94d
Parents:
94e3a03
Message:

Replace casts from non-bool to bool with explicit equality check.

Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/smp/mps.c

    r94e3a03 rc81132d  
    9191                return false;
    9292       
    93         return (bool) ((processor_entries[i].cpu_flags & 0x01) == 0x01);
     93        return ((processor_entries[i].cpu_flags & 0x01) == 0x01);
    9494}
    9595
     
    9898        assert(i < processor_entry_cnt);
    9999       
    100         return (bool) ((processor_entries[i].cpu_flags & 0x02) == 0x02);
     100        return ((processor_entries[i].cpu_flags & 0x02) == 0x02);
    101101}
    102102
  • kernel/generic/src/mm/as.c

    r94e3a03 rc81132d  
    833833                            btree_node_t, leaf_link);
    834834                       
    835                         if ((cond = (bool) node->keys)) {
     835                        if ((cond = (node->keys != 0))) {
    836836                                uintptr_t ptr = node->key[node->keys - 1];
    837837                                size_t node_size =
Note: See TracChangeset for help on using the changeset viewer.