[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <201202022037.19225.rjw@sisk.pl>
Date: Thu, 2 Feb 2012 20:37:19 +0100
From: "Rafael J. Wysocki" <rjw@...k.pl>
To: "Srivatsa S. Bhat" <srivatsa.bhat@...ux.vnet.ibm.com>
Cc: Marcos Paulo de Souza <marcos.mage@...il.com>, len.brown@...el.com,
pavel@....cz, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] PM/Suspend: Avoid code duplication in suspend statistics update
On Thursday, February 02, 2012, Srivatsa S. Bhat wrote:
> On 02/02/2012 07:09 AM, Marcos Paulo de Souza wrote:
>
> > The code
> > if (error) {
> > suspend_stats.fail++;
> > dpm_save_failed_errno(error);
> > } else
> > suspend_stats.success++;
> >
> > Appears in the kernel/power/main.c and kernel/power/suspend.c.
> >
> > This patch just creates a new function to avoid duplicated code.
> >
> > Suggested-by: Srivatsa S. Bhat <srivatsa.bhat@...ux.vnet.ibm.com>
> > Signed-off-by: Marcos Paulo de Souza <marcos.mage@...il.com>
> > ---
>
>
> Looks good to me :-)
>
> Acked-by: Srivatsa S. Bhat <srivatsa.bhat@...ux.vnet.ibm.com>
Applied.
Thanks,
Rafael
--
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