From 1a627e3761bf7d395ff9d8794869651bf445bc56 Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Wed, 15 Sep 2004 23:02:18 +0000 Subject: [PATCH] [IA64-SGI]: fix `qw' might be used uninitialized warning The compiler has no way of knowing whether nentries will be greater than 0, so it was generating a warning that qw might be used uninitialized. Fix it by explicitly setting it to 0. Cc'ing Brian in case he has an internal version he'd like to keep in sync. Signed-off-by: Jesse Barnes Signed-off-by: Tony Luck --- arch/ia64/sn/kernel/sn2/prominfo_proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ia64/sn/kernel/sn2/prominfo_proc.c b/arch/ia64/sn/kernel/sn2/prominfo_proc.c index d9228584d8cc0..e8dc684a14c0f 100644 --- a/arch/ia64/sn/kernel/sn2/prominfo_proc.c +++ b/arch/ia64/sn/kernel/sn2/prominfo_proc.c @@ -222,7 +222,7 @@ dump_version(char *page, unsigned long *fit) { int nentries; int fentry; - unsigned long qw; + unsigned long qw = 0; int len; nasid_t nasid = NASID_GET(fit); -- 2.53.0