Fix svace 'UNREACHABLE_CODE.NO_PATH' warnings 49/253449/1
authorNishant Chaprana <n.chaprana@samsung.com>
Wed, 10 Feb 2021 05:39:40 +0000 (11:09 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Wed, 10 Feb 2021 06:38:12 +0000 (12:08 +0530)
Change-Id: Ibefe7a09903f2d05e7aa12e9262f820d4e7feb71
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
plugins/wifi.c
src/technology.c

index f80cbd1..2c6d50d 100755 (executable)
@@ -2408,7 +2408,7 @@ static void setup_autoscan(struct wifi_data *wifi)
 
                return;
        }
-#endif
+#else
 
        /*
         * On the contrary, if BackgroundScanning is disabled, update autoscan
@@ -2432,6 +2432,7 @@ static void setup_autoscan(struct wifi_data *wifi)
                wifi->autoscan = parse_autoscan_params(AUTOSCAN_SINGLE);
                break;
        }
+#endif
 }
 
 static void finalize_interface_creation(struct wifi_data *wifi)
index 39b0cfa..440d7eb 100644 (file)
@@ -1406,9 +1406,10 @@ void __connman_technology_scan_stopped(struct connman_device *device,
        reply_scan_pending_device(technology, ifname, count);
 
        return;
-#endif
+#else
        if (count == 0)
                reply_scan_pending(technology, 0);
+#endif
 }
 
 void __connman_technology_notify_regdom_by_device(struct connman_device *device,