aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2013-10-14 07:48:41 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-10-24 11:17:06 -0400
commit160d378ebc76a796cc16ae873baeed02992f9202 (patch)
tree98c43f0569d030ccb25e90814bb2c729be1cb9ce
parentf8544ec4f49ffb9cb93419e41f0d8c0fb39eb78f (diff)
s390/cache: get rid of compile warning
Get rid of this one: arch/s390/kernel/cache.c: In function 'cache_build_info': arch/s390/kernel/cache.c:144: warning: 'private' may be used uninitialized in this function Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r--arch/s390/kernel/cache.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/s390/kernel/cache.c b/arch/s390/kernel/cache.c
index dd62071624be..3a414c0f93ed 100644
--- a/arch/s390/kernel/cache.c
+++ b/arch/s390/kernel/cache.c
@@ -146,15 +146,14 @@ static void __init cache_build_info(void)
146 ct.raw = ecag(EXTRACT_TOPOLOGY, 0, 0); 146 ct.raw = ecag(EXTRACT_TOPOLOGY, 0, 0);
147 for (level = 0; level < CACHE_MAX_LEVEL; level++) { 147 for (level = 0; level < CACHE_MAX_LEVEL; level++) {
148 switch (ct.ci[level].scope) { 148 switch (ct.ci[level].scope) {
149 case CACHE_SCOPE_NOTEXISTS:
150 case CACHE_SCOPE_RESERVED:
151 return;
152 case CACHE_SCOPE_SHARED: 149 case CACHE_SCOPE_SHARED:
153 private = 0; 150 private = 0;
154 break; 151 break;
155 case CACHE_SCOPE_PRIVATE: 152 case CACHE_SCOPE_PRIVATE:
156 private = 1; 153 private = 1;
157 break; 154 break;
155 default:
156 return;
158 } 157 }
159 if (ct.ci[level].type == CACHE_TYPE_SEPARATE) { 158 if (ct.ci[level].type == CACHE_TYPE_SEPARATE) {
160 rc = cache_add(level, private, CACHE_TYPE_DATA); 159 rc = cache_add(level, private, CACHE_TYPE_DATA);