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:
Varun Sharma 2019-03-14 01:20:51 +05:30 committed by Anas Nashif
parent 4e90103fcb
commit 0758e3a700

View file

@ -219,7 +219,10 @@ static int inode_to_dirent(struct nffs_inode_entry *inode,
entry->size = 0;
} else {
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;
}