[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201111191446.53849.rjw@sisk.pl>
Date: Sat, 19 Nov 2011 14:46:53 +0100
From: "Rafael J. Wysocki" <rjw@...k.pl>
To: "Srivatsa S. Bhat" <srivatsa.bhat@...ux.vnet.ibm.com>
Cc: pavel@....cz, len.brown@...el.com, linux-kernel@...r.kernel.org,
linux-pm@...r.kernel.org
Subject: Re: [PATCH] kernel/power/main.c : Fix indentation and remove extraneous whitespaces
On Saturday, November 19, 2011, Srivatsa S. Bhat wrote:
> Lack of proper indentation of the goto statement decreases the readability
> of code significantly. In fact, this made me look twice at the code to check
> whether it really does what it should be doing. Fix this.
>
> And in the same file, there are some extra whitespaces. Get rid of them too.
>
> Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@...ux.vnet.ibm.com>
Applied to linux-pm/linux-next.
Thanks,
Rafael
> ---
>
> kernel/power/main.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/kernel/power/main.c b/kernel/power/main.c
> index 71f49fe..670fb08 100644
> --- a/kernel/power/main.c
> +++ b/kernel/power/main.c
> @@ -3,7 +3,7 @@
> *
> * Copyright (c) 2003 Patrick Mochel
> * Copyright (c) 2003 Open Source Development Lab
> - *
> + *
> * This file is released under the GPLv2
> *
> */
> @@ -240,7 +240,7 @@ struct kobject *power_kobj;
> * 'standby' (Power-On Suspend), 'mem' (Suspend-to-RAM), and
> * 'disk' (Suspend-to-Disk).
> *
> - * store() accepts one of those strings, translates it into the
> + * store() accepts one of those strings, translates it into the
> * proper enumerated value, and initiates a suspend transition.
> */
> static ssize_t state_show(struct kobject *kobj, struct kobj_attribute *attr,
> @@ -282,7 +282,7 @@ static ssize_t state_store(struct kobject *kobj, struct kobj_attribute *attr,
> /* First, check if we are requested to hibernate */
> if (len == 4 && !strncmp(buf, "disk", len)) {
> error = hibernate();
> - goto Exit;
> + goto Exit;
> }
>
> #ifdef CONFIG_SUSPEND
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pm" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists