btle: Add some braces to if statements

As suggested in merge request 9233.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
This commit is contained in:
Rubin Gerritsen 2023-01-06 20:57:24 +01:00 committed by Alexis La Goutte
parent 0627ece136
commit 08d78fddb3
1 changed files with 14 additions and 7 deletions

View File

@ -3781,8 +3781,9 @@ dissect_btle(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
control_opcode);
/* Procedure completes in the same frame. */
if (proc_info)
if (proc_info) {
proc_info->last_frame = pinfo->num;
}
} else if (direction == BTLE_DIR_MASTER_SLAVE) {
expert_add_info(pinfo, control_proc_item, &ei_control_proc_wrong_seq);
}
@ -3827,8 +3828,9 @@ dissect_btle(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
control_opcode);
/* Procedure completes in the same frame. */
if (proc_info)
if (proc_info) {
proc_info->last_frame = pinfo->num;
}
}
break;
case 0x1D: /* LL_CLOCK_ACCURACY_REQ */
@ -3965,8 +3967,9 @@ dissect_btle(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
control_opcode);
/* Procedure completes in the same frame. */
if (proc_info)
if (proc_info) {
proc_info->last_frame = pinfo->num;
}
}
break;
case 0x23: /* LL_POWER_CONTROL_REQ */
@ -4007,8 +4010,9 @@ dissect_btle(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
control_opcode);
/* Procedure completes in the same frame. */
if (proc_info)
if (proc_info) {
proc_info->last_frame = pinfo->num;
}
}
break;
case 0x26: /* LL_SUBRATE_REQ */
@ -4046,8 +4050,9 @@ dissect_btle(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
control_opcode);
/* Procedure completes in the same frame. */
if (proc_info)
if (proc_info) {
proc_info->last_frame = pinfo->num;
}
} else {
expert_add_info(pinfo, control_proc_item, &ei_control_proc_wrong_seq);
}
@ -4064,8 +4069,9 @@ dissect_btle(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
control_opcode);
/* Procedure completes in the same frame. */
if (proc_info)
if (proc_info) {
proc_info->last_frame = pinfo->num;
}
} else if (direction == BTLE_DIR_SLAVE_MASTER) {
expert_add_info(pinfo, control_proc_item, &ei_control_proc_wrong_seq);
}
@ -4082,8 +4088,9 @@ dissect_btle(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
control_opcode);
/* Procedure completes in the same frame. */
if (proc_info)
if (proc_info) {
proc_info->last_frame = pinfo->num;
}
} else if (direction == BTLE_DIR_MASTER_SLAVE) {
expert_add_info(pinfo, control_proc_item, &ei_control_proc_wrong_seq);
}