* ofnode_valid() - check if an ofnode is valid * * @return true if the reference contains a valid ofnode, RT_FALSE if it is NULL */
| 321 | * @return true if the reference contains a valid ofnode, RT_FALSE if it is NULL |
| 322 | */ |
| 323 | static inline rt_bool_t dtb_node_valid(const struct dtb_node *node) |
| 324 | { |
| 325 | if (dtb_node_active()) |
| 326 | return node != NULL; |
| 327 | return RT_FALSE; |
| 328 | } |
| 329 | |
| 330 | /*dtb_base.c */ |
| 331 | rt_bool_t dtb_node_read_bool(const struct dtb_node *node, const char *propname); |
no test coverage detected