mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
mm: memcontrol - uninitialised return value
Only an out of memory error will cause ret to be set. Signed-off-by: Phil Carmody <[email protected]> Acked-by: Kirill A. Shutemov <[email protected]> Cc: Balbir Singh <[email protected]> Cc: Daisuke Nishimura <[email protected]> Acked-by: KAMEZAWA Hiroyuki <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5407a56257
commit
315c1998e1
1 changed files with 1 additions and 1 deletions
|
|
@ -3563,7 +3563,7 @@ static int mem_cgroup_usage_unregister_event(struct cgroup *cgrp,
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue