| .. | .. |
|---|
| 74 | 74 | |
|---|
| 75 | 75 | ACPI_FUNCTION_NAME(ns_delete_node); |
|---|
| 76 | 76 | |
|---|
| 77 | + if (!node) { |
|---|
| 78 | + return_VOID; |
|---|
| 79 | + } |
|---|
| 80 | + |
|---|
| 77 | 81 | /* Detach an object if there is one */ |
|---|
| 78 | 82 | |
|---|
| 79 | 83 | acpi_ns_detach_object(node); |
|---|
| .. | .. |
|---|
| 237 | 241 | node->type = (u8) type; |
|---|
| 238 | 242 | |
|---|
| 239 | 243 | ACPI_DEBUG_PRINT((ACPI_DB_NAMES, |
|---|
| 240 | | - "%4.4s (%s) [Node %p Owner %X] added to %4.4s (%s) [Node %p]\n", |
|---|
| 244 | + "%4.4s (%s) [Node %p Owner %3.3X] added to %4.4s (%s) [Node %p]\n", |
|---|
| 241 | 245 | acpi_ut_get_node_name(node), |
|---|
| 242 | 246 | acpi_ut_get_type_name(node->type), node, owner_id, |
|---|
| 243 | 247 | acpi_ut_get_node_name(parent_node), |
|---|
| .. | .. |
|---|
| 290 | 294 | node_to_delete = next_node; |
|---|
| 291 | 295 | next_node = next_node->peer; |
|---|
| 292 | 296 | acpi_ns_delete_node(node_to_delete); |
|---|
| 293 | | - }; |
|---|
| 297 | + } |
|---|
| 294 | 298 | |
|---|
| 295 | 299 | /* Clear the parent's child pointer */ |
|---|
| 296 | 300 | |
|---|