diff options
author | Nishant Chaprana <n.chaprana@samsung.com> | 2021-02-10 11:09:40 +0530 |
---|---|---|
committer | Nishant Chaprana <n.chaprana@samsung.com> | 2021-02-10 12:08:12 +0530 |
commit | 711bd3f8771ca11f376de0753aa9e71dd60c0b28 (patch) | |
tree | 968a64bb2c404ddb4e9bc535ff098f4e701c1be5 | |
parent | 913f1e05c1f3ac7897646f76d873bf570064fc67 (diff) | |
download | connman-711bd3f8771ca11f376de0753aa9e71dd60c0b28.tar.gz connman-711bd3f8771ca11f376de0753aa9e71dd60c0b28.tar.bz2 connman-711bd3f8771ca11f376de0753aa9e71dd60c0b28.zip |
Fix svace 'UNREACHABLE_CODE.NO_PATH' warnings
Change-Id: Ibefe7a09903f2d05e7aa12e9262f820d4e7feb71
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
-rwxr-xr-x | plugins/wifi.c | 3 | ||||
-rw-r--r-- | src/technology.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c index f80cbd17..2c6d50d0 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 39b0cfaa..440d7ebb 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, |