wifi_data is already allocated and zeroed, meaning we do not have to initialize the struct members individually.
Signed-off-by: Michael Ikey Doherty <[email protected]> --- plugins/wifi.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index bac1fc6..42940f8 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -176,11 +176,6 @@ static int wifi_probe(struct connman_device *device) if (!wifi) return -ENOMEM; - wifi->connected = false; - wifi->disconnecting = false; - wifi->tethering = false; - wifi->bridged = false; - wifi->bridge = NULL; wifi->state = G_SUPPLICANT_STATE_INACTIVE; connman_device_set_data(device, wifi); -- 1.8.3.1 --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. _______________________________________________ connman mailing list [email protected] https://lists.connman.net/mailman/listinfo/connman
