tests: subsys: fs : Fix coverity issue
Fix Unchecked return value for nffs_inode_data_len() in func: inode_to_diren() Coverity-CID: 190981 Fixes: #13840 Signed-off-by: Varun Sharma <varun.sharma@intel.com>
This commit is contained in:
parent
4e90103fcb
commit
0758e3a700
|
@ -219,7 +219,10 @@ static int inode_to_dirent(struct nffs_inode_entry *inode,
|
||||||
entry->size = 0;
|
entry->size = 0;
|
||||||
} else {
|
} else {
|
||||||
entry->type = FS_DIR_ENTRY_FILE;
|
entry->type = FS_DIR_ENTRY_FILE;
|
||||||
nffs_inode_data_len(inode, &size);
|
rc = nffs_inode_data_len(inode, &size);
|
||||||
|
if (rc) {
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
entry->size = size;
|
entry->size = size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue