mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
mm/frontswap: fix uninit'ed variable warning
Fixes uninitialized variable warning on 'type' in frontswap_shrink(). type is set before use by __frontswap_unuse_pages() called by __frontswap_shrink() called by frontswap_shrink() before use by try_to_unuse(). Signed-off-by: Seth Jennings <[email protected]> Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
This commit is contained in:
parent
1d00015e26
commit
6b982fcf02
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@ static int __frontswap_shrink(unsigned long target_pages,
|
|||
void frontswap_shrink(unsigned long target_pages)
|
||||
{
|
||||
unsigned long pages_to_unuse = 0;
|
||||
int type, ret;
|
||||
int uninitialized_var(type), ret;
|
||||
|
||||
/*
|
||||
* we don't want to hold swap_lock while doing a very
|
||||
|
|
|
|||
Loading…
Reference in a new issue