summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2015-11-02 11:28:51 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2015-11-02 11:28:51 +0200
commitf5f2ec0177aa30b2a0e2f97d615d6dba89be3b58 (patch)
tree6d568ecadaae18a0162df25fbfd63a8ab9f2eff6 /tools
parent15a77624f2a9f9642469cdc026cdd4aa87ef2dff (diff)
downloadbluez-f5f2ec0177aa30b2a0e2f97d615d6dba89be3b58.tar.gz
tools/mgmt-tester: Remove unnecessary define
There's no need to have a define for opcode 0 since all of the structs needing this are declared static and will have the value set to 0 if not explicitly mentioned.
Diffstat (limited to 'tools')
-rw-r--r--tools/mgmt-tester.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index 0a1a7c27f..2f460c573 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
@@ -437,8 +437,6 @@ struct generic_data {
uint8_t adv_data_len;
};
-# define TESTER_NOOP_OPCODE 0x0000
-
static const char dummy_data[] = { 0x00 };
static const struct generic_data invalid_command_test = {
@@ -4601,7 +4599,6 @@ static const struct generic_data add_advertising_success_18 = {
};
static const struct generic_data add_advertising_timeout_expired = {
- .send_opcode = TESTER_NOOP_OPCODE,
.expect_alt_ev = MGMT_EV_ADVERTISING_REMOVED,
.expect_alt_ev_param = advertising_instance1_param,
.expect_alt_ev_len = sizeof(advertising_instance1_param),
@@ -4656,7 +4653,6 @@ static const struct generic_data remove_advertising_success_2 = {
};
static const struct generic_data multi_advertising_switch = {
- .send_opcode = TESTER_NOOP_OPCODE,
.expect_alt_ev = MGMT_EV_ADVERTISING_REMOVED,
.expect_alt_ev_param = advertising_instance1_param,
.expect_alt_ev_len = sizeof(advertising_instance1_param),