]> git.baikalelectronics.ru Git - kernel.git/commit
[MTD] cmdlinepart.c: don't compare pointers with 0
authorAdrian Bunk <bunk@kernel.org>
Mon, 14 Apr 2008 14:20:04 +0000 (17:20 +0300)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 22 Apr 2008 14:55:38 +0000 (15:55 +0100)
commit2585649deb25e50da2723102e7c080908205a5a7
treea86fd8198b0fae7f2ca2a83b172a1f5b5c94970b
parent63996f2e2b9889fe55e7118c381cb52cfc54fa9b
[MTD] cmdlinepart.c: don't compare pointers with 0

Sparse spotted that 0 was compared to pointers.

While I was at it, I also moved the assignments out of the if's.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/cmdlinepart.c