Trivially get rid of some unnecessary indentation. Signed-off-by: Davidlohr Bueso <dave@xxxxxxxxxxxx> --- drivers/base/node.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/base/node.c b/drivers/base/node.c index ec8bb24a5a22..6cdf25fd26c3 100644 --- a/drivers/base/node.c +++ b/drivers/base/node.c @@ -661,16 +661,16 @@ static int register_node(struct node *node, int num) node->dev.bus = &node_subsys; node->dev.release = node_device_release; node->dev.groups = node_dev_groups; - error = device_register(&node->dev); - if (error) + error = device_register(&node->dev); + if (error) { put_device(&node->dev); - else { - hugetlb_register_node(node); - - compaction_register_node(node); + return error; } - return error; + + hugetlb_register_node(node); + compaction_register_node(node); + return 0; } /** -- 2.26.2