Commit 1a627e37 authored by Jesse Barnes's avatar Jesse Barnes Committed by Tony Luck

[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: default avatarJesse Barnes <jbarnes@sgi.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent dca3d52a
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment