Skip to contentSkip to conversation

Remove unnecessary 'break' at mem_cgroup_read() for invalid MEMFILE_TYPE.

PATCH New Jeff Liu 1 participant 1 message Feb 24, 2012

Subsystems (2)
lore
Share & tools
lore

Jeff Liu

author
#0 lore raw

PATCH 1/1 Remove unnecessary 'break' at mem_cgroup_read() for invalid MEMFILE_TYPE.

Hello,

The 'break' is unnecessary at mem_cgroup_read() routine if the MEMFILE_TYPE is invalid IMHO.

---
 mm/memcontrol.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
mm/memcontrol.c +0 -1
index 6aff93c..105972c 100644
@@ -3886,7 +3886,6 @@ static u64 mem_cgroup_read(struct cgroup *cont, struct cftype *cft)
 		break;
 	default:
 		BUG();
-		break;
 	}
 	return val;
 }
Signature · 8 lines
1.7.9

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  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:"[email protected]"> [email protected] </a>