src/bluetooth-common: Fix variable reassigning issue 55/31755/1 tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0_ivi accepted/tizen/common/20141210.081623 accepted/tizen/ivi/20141218.014734 accepted/tizen/mobile/20141216.074805 accepted/tizen/tv/20141210.193336 accepted/tizen/wearable/20141210.195821 submit/tizen/20141210.055510 tizen_3.0_ivi_release
authorGowtham Anandha Babu <gowtham.ab@samsung.com>
Tue, 9 Dec 2014 12:22:31 +0000 (17:52 +0530)
committerGowtham Anandha Babu <gowtham.ab@samsung.com>
Tue, 9 Dec 2014 12:22:31 +0000 (17:52 +0530)
Fix variable which is reassigned a value before the old one has been used.
So, no use of initializing it.

Change-Id: I6bcaa66ee035c294c0e9236b8b1e3ed39616419f

src/bluetooth-common.c

index 6474b7697a4d503d9df2091e6f05d22e6b0d8a64..a528ae6fa02bcdd94c266ad9e3b2b685cce22b9f 100644 (file)
@@ -479,7 +479,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
        telephony_event_callid_t *call_data = NULL;
        char *device_addr = NULL;
        int error_code = BT_ERROR_NONE;
-       int event_index = -1;
+       int event_index;
        bluetooth_network_device_info_t *dev_info = NULL;
        bt_hdp_connected_t *hdp_conn_info = NULL;
        bt_hdp_disconnected_t *hdp_disconn_info = NULL;