浏览代码

Fix missing return in do_mem_loop()

For some reason this does not normally cause a compiler warning, but the code
seems to be incorrect. Add the missing return.

Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass 12 年之前
父节点
当前提交
92765f4209
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      common/cmd_mem.c

+ 2 - 0
common/cmd_mem.c

@@ -551,6 +551,8 @@ static int do_mem_loop(cmd_tbl_t *cmdtp, int flag, int argc,
 			*cp++;
 			*cp++;
 	}
 	}
 	unmap_sysmem(buf);
 	unmap_sysmem(buf);
+
+	return 0;
 }
 }
 
 
 #ifdef CONFIG_LOOPW
 #ifdef CONFIG_LOOPW