bridging: Fix expressions style (to support clang) 91/18891/2
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Fri, 24 Mar 2017 01:56:11 +0000 (02:56 +0100)
committerTodd Malsbary <todd.malsbary@intel.com>
Tue, 18 Apr 2017 16:30:07 +0000 (16:30 +0000)
Change-Id: I8e9892f9e370e1bda424b840528079b35830069c
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18891
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-by: Todd Malsbary <todd.malsbary@intel.com>
bridging/mini_plugin_manager/miniPluginManager.cpp
bridging/plugins/hue_plugin/hue_file.cpp
bridging/plugins/hue_plugin/hue_resource.cpp

index d0bebbe..12ba830 100644 (file)
@@ -217,7 +217,7 @@ MPMResult MPMLoad(MPMPluginHandle *pluginHandle, const char *pluginName, MPMCall
     MPMResult result = MPM_RESULT_INTERNAL_ERROR;
     MPMPluginRunTime *functionSymbolTable;
 
-    if ((pluginName == NULL))
+    if (pluginName == NULL)
     {
         OIC_LOG(ERROR, TAG, "PluginName is NULL");
         return result;
index 4a3e8ab..f9a5701 100644 (file)
@@ -207,7 +207,7 @@ static bool parseAuthorizedBridge(cJSON *object)
 
 bool collectAuthorizedClients(const char *macAddrString, char *clientArray, uint32_t *numClients)
 {
-    if ((macAddrString == NULL))
+    if (macAddrString == NULL)
     {
         OIC_LOG_V(ERROR, TAG, "Mac id is NULL");
         return false;
index b638a03..9a3429a 100644 (file)
@@ -722,7 +722,7 @@ OCEntityHandlerResult handleEntityHandlerRequests(
 
     try
     {
-        if ((entityHandlerRequest == NULL))
+        if (entityHandlerRequest == NULL)
         {
             throw "Entity handler received a null entity request context" ;
         }