Commit 62deaa83 authored by Jesse Grodman's avatar Jesse Grodman Committed by Jim Harris
Browse files

thread: don't log an error when returning null in spdk_get_thread



the purpose of this commit is to avoid an entry into the error log in
the case that a thread does not exist, since there is no separate
function to check if a thread exists

Signed-off-by: default avatarJesse Grodman <jgrodman@gmail.com>
Change-Id: Iec79b87e11e411bde59004baae1dc996864cec4d
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/481576


Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent a531e9d7
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -675,14 +675,7 @@ spdk_thread_get_count(void)
struct spdk_thread *
spdk_get_thread(void)
{
	struct spdk_thread *thread;

	thread = _get_thread();
	if (!thread) {
		SPDK_ERRLOG("No thread allocated\n");
	}

	return thread;
	return _get_thread();
}

const char *