[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTimaF-MLHpG6JsmR+-EW-hDsVVWFZ2NWFrFHkE5d@mail.gmail.com>
Date: Sat, 26 Mar 2011 15:49:30 +0800
From: Liu Yuan <namei.unix@...il.com>
To: linux-kernel@...r.kernel.org, greg@...ah.com, nfont@...tin.ibm.com
Subject: Re: [PATCH] drivers: Initialize ret to fix build warning in memory_probe_store
Cc: Nathan Fontenot <nfont@...tin.ibm.com>
On Wed, Mar 23, 2011 at 8:45 PM, Liu Yuan <namei.unix@...il.com> wrote:
> From: Liu Yuan <tailai.ly@...bao.com>
>
> This fix a build warning in drivers/base/memory.c.
>
> Cc: Greg Kroah-Hartman <gregkh@...e.de>
> Signed-off-by: Liu Yuan <tailai.ly@...bao.com>
> ---
> drivers/base/memory.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/base/memory.c b/drivers/base/memory.c
> index 3da6a43..f2ac71f 100644
> --- a/drivers/base/memory.c
> +++ b/drivers/base/memory.c
> @@ -387,7 +387,7 @@ memory_probe_store(struct class *class, struct class_attribute *attr,
> {
> u64 phys_addr;
> int nid;
> - int i, ret;
> + int i, ret = 0;
>
> phys_addr = simple_strtoull(buf, NULL, 0);
>
> --
> 1.7.0.4
>
>
--
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