2011-03-26 07:49:32

by Liu Yuan

[permalink] [raw]
Subject: Re: [PATCH] drivers: Initialize ret to fix build warning in memory_probe_store

Cc: Nathan Fontenot <[email protected]>

On Wed, Mar 23, 2011 at 8:45 PM, Liu Yuan <[email protected]> wrote:
> From: Liu Yuan <[email protected]>
>
> This fix a build warning in drivers/base/memory.c.
>
> Cc: Greg Kroah-Hartman <[email protected]>
> Signed-off-by: Liu Yuan <[email protected]>
> ---
>  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
>
>


2011-03-26 15:01:58

by Greg KH

[permalink] [raw]
Subject: Re: [PATCH] drivers: Initialize ret to fix build warning in memory_probe_store

On Sat, Mar 26, 2011 at 03:49:30PM +0800, Liu Yuan wrote:
> Cc: Nathan Fontenot <[email protected]>
>
> On Wed, Mar 23, 2011 at 8:45 PM, Liu Yuan <[email protected]> wrote:
> > From: Liu Yuan <[email protected]>
> >
> > This fix a build warning in drivers/base/memory.c.
> >
> > Cc: Greg Kroah-Hartman <[email protected]>
> > Signed-off-by: Liu Yuan <[email protected]>

This is in my queue, please wait until .39-rc1 is out before I get to
this...

thanks,

greg k-h