Fix cppcheck 'clarifyCalculation' warnings 62/253362/1
authorNishant Chaprana <n.chaprana@samsung.com>
Tue, 9 Feb 2021 06:57:23 +0000 (12:27 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Tue, 9 Feb 2021 06:57:23 +0000 (12:27 +0530)
Change-Id: Id2c6e6466e27e948be4e4ace67f18fcf110abefa
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
src/wifi_internal.c

index 4fa15c6ecfee7f5bf3c64378183364b8e905b287..25d7fa61e3cd92b1051ca8a39ca73e37c0b4b9cf 100755 (executable)
@@ -2222,7 +2222,7 @@ int _wifi_netlink_scan_request(wifi_manager_h wifi, wifi_manager_netlink_scan_h
                return WIFI_MANAGER_ERROR_OPERATION_FAILED;
        }
 
-       enable = is_on & vconf_type ? true : false;
+       enable = (is_on & vconf_type) ? true : false;
 
        if (enable == false) {
                WIFI_LOG(WIFI_ERROR, "SoftAP is not enabled");