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: Jesse Grodman <jgrodman@gmail.com> Change-Id: Iec79b87e11e411bde59004baae1dc996864cec4d Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/481576 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
a531e9d70c
commit
62deaa8315
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user