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: b616d9b0 ("nand: Embed mtd_info in struct nand_chip")
Signed-off-by: Scott Wood <email@example.com>
Cc: Lukasz Majewski <firstname.lastname@example.org>
Cc: Tony Lindgren <email@example.com>
Acked-by: Tony Lindgren <firstname.lastname@example.org>