[connection:wifi] warnings removed 15/58415/2
authorMichal Pawluk <m.pawluk@samsung.com>
Sun, 31 Jan 2016 18:55:14 +0000 (19:55 +0100)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Thu, 4 Feb 2016 10:11:41 +0000 (02:11 -0800)
Change-Id: Ia6a48d656cbfbc1f53fedca9f4c1900cfea69fb5

src/modules/connection/wifi.c

index 7887af9..a3df46f 100644 (file)
@@ -247,14 +247,11 @@ static void _wifi_device_state_changed_cb(wifi_device_state_e state, void *user_
                _E("wifi_is_activated error. ret is [%d]", ret);
        }
 
-       switch(wifi_state) {
-       case WIFI_DEVICE_STATE_ACTIVATED:
+       if (wifi_state) {
                show_wifi_transfer_icon(user_data);
                show_image_icon(user_data, strength-1);
-               break;
-       case WIFI_DEVICE_STATE_DEACTIVATED:
+       } else {
                hide_image_icon();
-               break;
        }
 
        return;