]> git.openfabrics.org - ~shefty/rdma-dev.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)
commit213972e9faf8a16b27fee01ae7c7071de5080268
tree69291b2417d58e58e77d84ca88c6fe78536902b0
parent6237cdac5dd26d5ba81acf5daa737c8645614410
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