浏览代码

Merge MTD 4.3-rc1 updates into -next

Brian Norris 10 年之前
父节点
当前提交
f9b97fe614
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mtd/spi-nor/spi-nor.c

+ 1 - 1
drivers/mtd/spi-nor/spi-nor.c

@@ -1219,7 +1219,7 @@ static const struct flash_info *spi_nor_match_id(const char *name)
 {
 	const struct flash_info *id = spi_nor_ids;
 
-	while (id->name[0]) {
+	while (id->name) {
 		if (!strcmp(name, id->name))
 			return id;
 		id++;