提交 a96074e7 编写于 作者: J Jody McIntyre 提交者: Jody McIntyre

csr1212: add check for !valid

Don't read the keyval if there's already a valid one in place.  May not be
necessary but shouldn't hurt.
Signed-off-by: NJody McIntyre <scjdy@steamballoon.com>
上级 5303a986
......@@ -1618,7 +1618,8 @@ int csr1212_parse_csr(struct csr1212_csr *csr)
* and make cache regions for them */
for (dentry = csr->root_kv->value.directory.dentries_head;
dentry; dentry = dentry->next) {
if (dentry->kv->key.id == CSR1212_KV_ID_EXTENDED_ROM) {
if (dentry->kv->key.id == CSR1212_KV_ID_EXTENDED_ROM &&
!dentry->kv->valid) {
ret = _csr1212_read_keyval(csr, dentry->kv);
if (ret != CSR1212_SUCCESS)
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册