]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Avoid possible extra of_node_put in axon_msi.c
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Feb 2008 02:13:15 +0000 (13:13 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 6 Feb 2008 05:30:00 +0000 (16:30 +1100)
commit1ced13042d2bba0235433ff29232adda121dc790
tree216faf6fffd748b761abd4feec307f5b3020e9dd
parent08f7bd60dfcf524f10b5a896276104d910381bf9
[POWERPC] Avoid possible extra of_node_put in axon_msi.c

I got this warning from gcc:
arch/powerpc/platforms/cell/axon_msi.c:118: warning: 'tmp' may be used uninitialized in this function

Which turns out to be a false positive, but pointed out that it was
possible for the error path in find_msi_translator() to do an extra
of_node_put on a node.  This fixes it by localising the ref counting
a bit.  As a side effect, the warning goes away.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/axon_msi.c