[ovs-dev] [PATCH] list: Style fixes.
Ansis Atteka
aatteka at nicira.com
Mon Apr 15 21:49:59 UTC 2013
Looks good.
On Mon, Apr 15, 2013 at 2:48 PM, Ben Pfaff <blp at nicira.com> wrote:
> Signed-off-by: Ben Pfaff <blp at nicira.com>
> ---
> lib/list.c | 8 +++++---
> 1 files changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/lib/list.c b/lib/list.c
> index fd06b81..227546e 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;
> }
>
> --
> 1.7.2.5
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20130415/ff11849e/attachment-0003.html>
More information about the dev
mailing list