]> git.hungrycats.org Git - linux/commitdiff
[IA64-SGI]: fix `qw' might be used uninitialized warning
authorJesse Barnes <jbarnes@sgi.com>
Wed, 15 Sep 2004 23:02:18 +0000 (23:02 +0000)
committerTony Luck <aegl@agluck-lia64.sc.intel.com>
Wed, 15 Sep 2004 23:02:18 +0000 (23:02 +0000)
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 <jbarnes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/sn/kernel/sn2/prominfo_proc.c

index d9228584d8cc0b26791f16873086fddc3a95938a..e8dc684a14c0fd6618305f1e545388f66d0d5550 100644 (file)
@@ -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);