[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)
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>

No differences found