blobfs: add assert in fs_open_blob_create_cb to satisfy static checker
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Ia67d8a42825f7287c48729ec4d88d94a9efe430e
This commit is contained in:
parent
f2e4d641a5
commit
7079a18f21
@ -761,7 +761,13 @@ fs_open_blob_create_cb(void *ctx, int bserrno)
|
||||
struct spdk_filesystem *fs = args->fs;
|
||||
|
||||
if (file == NULL) {
|
||||
/*
|
||||
* This is from an open with CREATE flag - the file
|
||||
* is now created so look it up in the file list for this
|
||||
* filesystem.
|
||||
*/
|
||||
file = fs_find_file(fs, args->op.open.name);
|
||||
assert(file != NULL);
|
||||
args->file = file;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user