From 711bd3f8771ca11f376de0753aa9e71dd60c0b28 Mon Sep 17 00:00:00 2001 From: Nishant Chaprana Date: Wed, 10 Feb 2021 11:09:40 +0530 Subject: [PATCH] Fix svace 'UNREACHABLE_CODE.NO_PATH' warnings Change-Id: Ibefe7a09903f2d05e7aa12e9262f820d4e7feb71 Signed-off-by: Nishant Chaprana --- plugins/wifi.c | 3 ++- src/technology.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index f80cbd1..2c6d50d 100755 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -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) diff --git a/src/technology.c b/src/technology.c index 39b0cfa..440d7eb 100644 --- a/src/technology.c +++ b/src/technology.c @@ -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, -- 2.7.4