]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sparc64: refactor code in viohs.c
authorSam Ravnborg <sam@ravnborg.org>
Tue, 6 Jan 2009 20:46:46 +0000 (12:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jan 2009 20:46:46 +0000 (12:46 -0800)
commit2eac5a0d3a84acd267ff7aac5b45c020bfcb158c
treeab9dbf30468808bbb8afb235735f28ea35a54792
parentb2c0805f77ff6b87bb18994ce70352fecc3ce7fc
sparc64: refactor code in viohs.c

The sparc64 allmodconfig build broke due to enabling of the
branch_tracer that does some very clever things with
all if conditions. This caused my gcc 3.4.5 to be so confused that
it emitted a warning:

arch/sparc/kernel/viohs.c: In function `vio_control_pkt_engine':
arch/sparc/kernel/viohs.c:335: warning: 'nver' might be used uninitialized in this function

And with -Werror this broke the build.

Refactor code so it:
1) becomes more readable
2) no longer emit a warning with the branch_tracer enabled

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/viohs.c