login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
May
»
6
Re: [PATCH 2/2] mm: memcontrol - uninitialised return value
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrew Morton
Subject:
Re: [PATCH 2/2] mm: memcontrol - uninitialised return value
Date: Thursday, May 6, 2010 - 2:24 pm
On Wed, 5 May 2010 14:21:49 +0300 Phil Carmody <ext-phil.2.carmody@nokia.com> wrote:
quoted text
> From: Phil Carmody <ext-phil.2.carmody@nokia.com> > > Only an out of memory error will cause ret to be set. > > Acked-by: Kirill A. Shutemov <kirill@shutemov.name> > Signed-off-by: Phil Carmody <ext-phil.2.carmody@nokia.com> > --- > mm/memcontrol.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > index 90e32b2..09af773 100644 > --- a/mm/memcontrol.c > +++ b/mm/memcontrol.c > @@ -3464,7 +3464,7 @@ static int mem_cgroup_unregister_event(struct cgroup *cgrp, struct cftype *cft, > int type = MEMFILE_TYPE(cft->private); > u64 usage; > int size = 0; > - int i, j, ret; > + int i, j, ret = 0; > > mutex_lock(&memcg->thresholds_lock); > if (type == _MEM)
afacit the return value of cftype.unregister_event() is always ignored anyway. Perhaps it should be changed to void-returning, or fixed. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/2] mm: remove unnecessary use of atomic
, Phil Carmody
, (Wed May 5, 4:21 am)
[PATCH 2/2] mm: memcontrol - uninitialised return value
, Phil Carmody
, (Wed May 5, 4:21 am)
Re: [PATCH 1/2] mm: remove unnecessary use of atomic
, KAMEZAWA Hiroyuki
, (Wed May 5, 11:18 pm)
Re: [PATCH 2/2] mm: memcontrol - uninitialised return value
, KAMEZAWA Hiroyuki
, (Wed May 5, 11:18 pm)
Re: [PATCH 2/2] mm: memcontrol - uninitialised return value
, Andrew Morton
, (Thu May 6, 2:24 pm)
Re: [PATCH 2/2] mm: memcontrol - uninitialised return value
, KAMEZAWA Hiroyuki
, (Thu May 6, 6:07 pm)
Re: [PATCH 2/2] mm: memcontrol - uninitialised return value
, Kirill A. Shutemov
, (Thu May 6, 10:15 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rusty Russell
Re: 2.6.22-rc3-mm1
Bill Fink
Re: [PATCH] net: add ability to clear stats via ethtool - e1000/pcnet32
Jeffrey V. Merkey
Re: Versioning file system
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Luben Tuikov
Re: Integration of SCST in the mainstream Linux kernel
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
PCI hotplug: acpiphp: remove superfluous _HPP/_HPX evaluation
linux-netdev
:
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
Rafael J. Wysocki
Re: [PATCH] igb: fix kexec with igb
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
webmaster Maintenance
&#32852;&#31995;&#31995;&#32479;&#31649;&#29702;&#21592;
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Jack J. Woehr
Re: Real men don't attack straw men
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Tony Abernethy
Re: The Atheros story in much fewer words
git
:
Oliver Kullmann
Re: how to move with history?
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Shawn O. Pearce
Re: Bugs in Gitosis
Alex Riesen
Re: git exclude patterns for directory
David Kastrup
Re: I'm a total push-over..
Colocation donated by:
Syndicate