]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pmac/low_i2c.c: three minor problems
authord binderman <dcb314@hotmail.com>
Sat, 6 Feb 2010 02:13:29 +0000 (02:13 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 7 Apr 2010 08:00:37 +0000 (18:00 +1000)
commit9c9be380e3b55b966c8b4b684be4f68a25466db1
tree69291b2417d58e58e77d84ca88c6fe78536902b0
parent1e42e18cccc589c3bffe4df2d3f1607819abc25c
powerpc/pmac/low_i2c.c: three minor problems

Fix minor nits found by cppcheck

[./arch/powerpc/platforms/powermac/low_i2c.c:594]: (style) The scope of the variable chans can be reduced
[./arch/powerpc/platforms/powermac/low_i2c.c:594]: (style) The scope of the variable i can be reduced
[./arch/powerpc/platforms/powermac/low_i2c.c:1260]: (style) Redundant condition. It is safe to deallocate a NULL pointer

Signed-off-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powermac/low_i2c.c