From 191c680ff71fc12b2b84683875dee8c684ba3dae Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sun, 5 Aug 2018 22:33:16 +0500 Subject: [PATCH] src/Cedar/Admin.c: remove unused condition, make coverity scan cleaner HubName == NULL always evaluated as "false", so we can remove it --- src/Cedar/Admin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cedar/Admin.c b/src/Cedar/Admin.c index 3c72a77f..96b6b412 100644 --- a/src/Cedar/Admin.c +++ b/src/Cedar/Admin.c @@ -188,7 +188,7 @@ return err; \ } #define CHECK_RIGHT \ - if (a->ServerAdmin == false && (t->HubName == NULL || StrCmpi(a->HubName, t->HubName) != 0)) \ + if (a->ServerAdmin == false && (StrCmpi(a->HubName, t->HubName) != 0)) \ return ERR_NOT_ENOUGH_RIGHT; \ if (IsEmptyStr(t->HubName)) \ return ERR_INVALID_PARAMETER;