@@ -4241,7 +4241,7 @@ static bool find_full_id_nand(struct mtd_info *mtd, struct nand_chip *chip,
* @id: manufacturer ID
*
* Returns a nand_manufacturer_desc object if the manufacturer is defined
- * in the NAND manufacturers database, NULL otherwise.
+ * in the NAND manufacturers database, "Unknown" entry otherwise.
*/
static const struct nand_manufacturer *nand_get_manufacturer_desc(u8 id)
{
@@ -4252,7 +4252,7 @@ static const struct nand_manufacturer *nand_get_manufacturer_desc(u8 id)
return &nand_manuf_ids[i];
}
- return NULL;
+ return &nand_manuf_ids[i];
}
/*
@@ -4425,13 +4425,13 @@ ident_done:
else if (chip->jedec_version)
pr_info("%s %s\n", manufacturer_desc->name,
chip->jedec_params.model);
- else if (manufacturer_desc)
+ else
pr_info("%s %s\n", manufacturer_desc->name, type->name);
#else
if (chip->jedec_version)
pr_info("%s %s\n", manufacturer_desc->name,
chip->jedec_params.model);
- else if (manufacturer_desc)
+ else
pr_info("%s %s\n", manufacturer_desc->name, type->name);
#endif