ARM: cache: fix uninitialized ptr in tauros2_init

init the variable "mode" to NULL to ensure the later NULL checking is
taking effect.

Signed-off-by: Chao Xie <xiechao.mail@gmail.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
This commit is contained in:
Chao Xie 2012-07-31 14:13:10 +08:00 committed by Haojian Zhuang
parent 0d2ee5d773
commit 5967b546dd

View file

@ -192,7 +192,7 @@ static inline void __init write_actlr(u32 actlr)
void __init tauros2_init(void)
{
extern int processor_id;
char *mode;
char *mode = NULL;
disable_l2_prefetch();