]> git.sur5r.net Git - u-boot/commit
nand: Fix some more NULL name tests
authorScott Wood <oss@buserror.net>
Thu, 1 Sep 2016 22:31:31 +0000 (17:31 -0500)
committerScott Wood <oss@buserror.net>
Fri, 2 Sep 2016 01:08:48 +0000 (20:08 -0500)
commit8b7d51249eca113c4965a7c417f33d7eb569434b
tree749d7b0e00f101c2873ef1c0ba00a2384537c59a
parent4004a81828c72311f9c310c38d903b3f6638465d
nand: Fix some more NULL name tests

Now that nand_info[] is an array of pointers we need to test the
pointer itself rather than using name as a proxy for NULLness.

Fixes: b616d9b0a708eb9 ("nand: Embed mtd_info in struct nand_chip")
Signed-off-by: Scott Wood <oss@buserror.net>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Tony Lindgren <tony@atomide.com>
Acked-by: Tony Lindgren <tony@atomide.com>
cmd/nand.c
drivers/dfu/dfu_nand.c
drivers/mtd/nand/omap_gpmc.c