From 113269228827043aaca717b5fb11b055e09a4636 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 15 Apr 2013 14:45:17 -0700 Subject: [PATCH] list: Style fixes. Signed-off-by: Ben Pfaff --- lib/list.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/list.c b/lib/list.c index fd06b81b1..227546e95 100644 --- a/lib/list.c +++ b/lib/list.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc. + * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,8 +46,9 @@ list_insert(struct list *before, struct list *elem) void list_splice(struct list *before, struct list *first, struct list *last) { - if (first == last) + if (first == last) { return; + } last = last->prev; /* Cleanly remove 'first'...'last' from its current list. */ @@ -160,8 +161,9 @@ list_size(const struct list *list) const struct list *e; size_t cnt = 0; - for (e = list->next; e != list; e = e->next) + for (e = list->next; e != list; e = e->next) { cnt++; + } return cnt; } -- 2.43.0