diff options
author | Seth Jennings <sjenning@linux.vnet.ibm.com> | 2012-07-30 14:47:44 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-08-13 15:41:30 -0400 |
commit | 6b982fcf0260b8371604fcf6a12c6beecb731c57 (patch) | |
tree | cbc82bafc1c751a17c147cb327c6a9294e40fc43 /mm | |
parent | 1d00015e268f9142de0b504b3e4a4905155276f2 (diff) | |
download | blackbird-op-linux-6b982fcf0260b8371604fcf6a12c6beecb731c57.tar.gz blackbird-op-linux-6b982fcf0260b8371604fcf6a12c6beecb731c57.zip |
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 <sjenning@linux.vnet.ibm.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/frontswap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/frontswap.c b/mm/frontswap.c index 6b3e71a2cd48..89dc399d3328 100644 --- a/mm/frontswap.c +++ b/mm/frontswap.c @@ -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 |