]> err.no Git - linux-2.6/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)
commited262c4f5cb8291668c27c88a022bd7628f067a4
treea86fd8198b0fae7f2ca2a83b172a1f5b5c94970b
parent456d9fc92eb8635d53e8facc57764464b8759173
[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