Commit 7079a18f authored by Jim Harris's avatar Jim Harris Committed by Daniel Verkamp
Browse files

blobfs: add assert in fs_open_blob_create_cb to satisfy static checker



Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: Ia67d8a42825f7287c48729ec4d88d94a9efe430e
parent f2e4d641
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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;
	}