nimble/host: Fix coding style

Some of those variables are also redundant.
This commit is contained in:
Andrzej Kaczmarek
2019-02-26 15:12:32 +01:00
parent 49e3d00afb
commit b8ae55fee4
+1 -3
View File
@@ -469,7 +469,6 @@ ble_sm_sc_random_rx(struct ble_sm_proc *proc, struct ble_sm_result *res)
if (proc->flags & BLE_SM_PROC_F_INITIATOR) {
ble_sm_sc_random_advance(proc);
int rc;
rc = ble_sm_sc_io_action(proc, &ioact);
if (rc != 0) {
@@ -497,6 +496,7 @@ ble_sm_sc_public_key_exec(struct ble_sm_proc *proc, struct ble_sm_result *res,
struct ble_sm_public_key *cmd;
struct os_mbuf *txom;
uint8_t ioact;
int rc;
res->app_status = ble_sm_sc_ensure_keys_generated();
if (res->app_status != 0) {
@@ -525,7 +525,6 @@ ble_sm_sc_public_key_exec(struct ble_sm_proc *proc, struct ble_sm_result *res,
if (!(proc->flags & BLE_SM_PROC_F_INITIATOR)) {
proc->state = BLE_SM_PROC_STATE_CONFIRM;
int rc;
rc = ble_sm_sc_io_action(proc, &ioact);
if (rc != 0) {
@@ -587,7 +586,6 @@ ble_sm_sc_public_key_rx(uint16_t conn_handle, struct os_mbuf **om,
res->enc_cb = 1;
} else {
if (proc->flags & BLE_SM_PROC_F_INITIATOR) {
int rc;
proc->state = BLE_SM_PROC_STATE_CONFIRM;