mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH] drivers: Initialize ret to fix build warning in memory_probe_store
       [not found] <1300884347-3225-1-git-send-email-tailai.ly@taobao.com>
@ 2011-03-26  7:49 ` Liu Yuan
  2011-03-26 14:58   ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Liu Yuan @ 2011-03-26  7:49 UTC (permalink / raw)
  To: linux-kernel, greg, nfont

Cc: Nathan Fontenot <nfont@austin.ibm.com>

On Wed, Mar 23, 2011 at 8:45 PM, Liu Yuan  <namei.unix@gmail.com> wrote:
> From: Liu Yuan <tailai.ly@taobao.com>
>
> This fix a build warning in drivers/base/memory.c.
>
> Cc: Greg Kroah-Hartman <gregkh@suse.de>
> Signed-off-by: Liu Yuan <tailai.ly@taobao.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
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] drivers: Initialize ret to fix build warning in memory_probe_store
  2011-03-26  7:49 ` [PATCH] drivers: Initialize ret to fix build warning in memory_probe_store Liu Yuan
@ 2011-03-26 14:58   ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2011-03-26 14:58 UTC (permalink / raw)
  To: Liu Yuan; +Cc: linux-kernel, nfont

On Sat, Mar 26, 2011 at 03:49:30PM +0800, Liu Yuan wrote:
> Cc: Nathan Fontenot <nfont@austin.ibm.com>
> 
> On Wed, Mar 23, 2011 at 8:45 PM, Liu Yuan  <namei.unix@gmail.com> wrote:
> > From: Liu Yuan <tailai.ly@taobao.com>
> >
> > This fix a build warning in drivers/base/memory.c.
> >
> > Cc: Greg Kroah-Hartman <gregkh@suse.de>
> > Signed-off-by: Liu Yuan <tailai.ly@taobao.com>

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

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-26 15:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1300884347-3225-1-git-send-email-tailai.ly@taobao.com>
2011-03-26  7:49 ` [PATCH] drivers: Initialize ret to fix build warning in memory_probe_store Liu Yuan
2011-03-26 14:58   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®