* [PATCH] Remove unnecessary 'break' at mem_cgroup_read() for invalid MEMFILE_TYPE.
@ 2012-02-24 9:42 Jeff Liu
0 siblings, 0 replies; only message in thread
From: Jeff Liu @ 2012-02-24 9:42 UTC (permalink / raw)
To: linux-mm; +Cc: akpm
Hello,
The 'break' is unnecessary at mem_cgroup_read() routine if the MEMFILE_TYPE is invalid IMHO.
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
---
mm/memcontrol.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 6aff93c..105972c 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -3886,7 +3886,6 @@ static u64 mem_cgroup_read(struct cgroup *cont, struct cftype *cft)
break;
default:
BUG();
- break;
}
return val;
}
--
1.7.9
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-24 12:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-24 9:42 [PATCH] Remove unnecessary 'break' at mem_cgroup_read() for invalid MEMFILE_TYPE Jeff Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).