From 5ecc80a14e6c0c2ac9c8f0a16801d2dc45788a72 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Wed, 22 Aug 2018 10:33:29 +0500 Subject: [PATCH] src/Cedar/Virtual: coverity suspects null pointer dereference here however, both Cancel() and ReleaseCancel() checks for NULL themselves, so we can remove this check --- src/Cedar/Virtual.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Cedar/Virtual.c b/src/Cedar/Virtual.c index 8f6cf5e9..206e933d 100644 --- a/src/Cedar/Virtual.c +++ b/src/Cedar/Virtual.c @@ -1995,12 +1995,9 @@ LABEL_RESTART: } Unlock(t->CancelLock); - if (c != NULL) - { - Cancel(c); + Cancel(c); - ReleaseCancel(c); - } + ReleaseCancel(c); } if (IsTubeConnected(ipc->Sock->RecvTube) == false || IsTubeConnected(ipc->Sock->SendTube) == false)