From e2b73b4f327b66a3c4acb52cbbb60e27a4a35194 Mon Sep 17 00:00:00 2001 From: Bas van den Berg Date: Tue, 8 Mar 2022 10:13:45 +0100 Subject: [PATCH] includes: remove duplicate includes (remove 2nd) --- apps/btshell/src/main.c | 1 - apps/central/src/main.c | 1 - apps/scanner/src/main.c | 1 - babblesim/core/src/cmsis.c | 4 ---- nimble/controller/src/ble_ll_rfmgmt.c | 1 - nimble/drivers/dialog_cmac/src/ble_hw.c | 1 - nimble/drivers/dialog_cmac/src/ble_phy.c | 1 - nimble/host/mesh/src/pb_adv.c | 1 - nimble/host/mesh/src/pb_gatt.c | 1 - nimble/host/src/ble_att_cmd.c | 1 - nimble/host/src/ble_hs_priv.h | 1 - nimble/host/src/ble_uuid.c | 1 - 12 files changed, 15 deletions(-) diff --git a/apps/btshell/src/main.c b/apps/btshell/src/main.c index f4f864e7f..774105014 100644 --- a/apps/btshell/src/main.c +++ b/apps/btshell/src/main.c @@ -25,7 +25,6 @@ #include "bsp/bsp.h" #include "log/log.h" #include "stats/stats.h" -#include "bsp/bsp.h" #include "hal/hal_gpio.h" #include "console/console.h" #include "btshell.h" diff --git a/apps/central/src/main.c b/apps/central/src/main.c index b2370359b..c088b947f 100755 --- a/apps/central/src/main.c +++ b/apps/central/src/main.c @@ -22,7 +22,6 @@ #include "console/console.h" #include "host/ble_hs.h" #include "host/util/util.h" -#include "console/console.h" #include "log/log.h" static uint8_t g_own_addr_type; diff --git a/apps/scanner/src/main.c b/apps/scanner/src/main.c index d21bba4bb..5158d0d5c 100644 --- a/apps/scanner/src/main.c +++ b/apps/scanner/src/main.c @@ -22,7 +22,6 @@ #include "console/console.h" #include "host/ble_hs.h" #include "host/util/util.h" -#include "console/console.h" #include "log/log.h" /* scan_event() calls scan(), so forward declaration is required */ diff --git a/babblesim/core/src/cmsis.c b/babblesim/core/src/cmsis.c index 622676c88..9beb32909 100644 --- a/babblesim/core/src/cmsis.c +++ b/babblesim/core/src/cmsis.c @@ -14,12 +14,8 @@ #include "cmsis.h" #include "os/sim.h" -#include #include #include -#include "irq_sources.h" -#include -#include "cmsis.h" extern void (* systemVectors[256])(void); diff --git a/nimble/controller/src/ble_ll_rfmgmt.c b/nimble/controller/src/ble_ll_rfmgmt.c index f73f6b3df..1877b6195 100644 --- a/nimble/controller/src/ble_ll_rfmgmt.c +++ b/nimble/controller/src/ble_ll_rfmgmt.c @@ -20,7 +20,6 @@ #include #include #include -#include #include "syscfg/syscfg.h" #include "controller/ble_phy.h" #include "controller/ble_ll.h" diff --git a/nimble/drivers/dialog_cmac/src/ble_hw.c b/nimble/drivers/dialog_cmac/src/ble_hw.c index 763de8dcf..a2724b687 100644 --- a/nimble/drivers/dialog_cmac/src/ble_hw.c +++ b/nimble/drivers/dialog_cmac/src/ble_hw.c @@ -24,7 +24,6 @@ #include "controller/ble_hw.h" #include "CMAC.h" #include "cmac_driver/cmac_shared.h" -#include "mcu/mcu.h" #include "tinycrypt/aes.h" static struct tc_aes_key_sched_struct g_ctx; diff --git a/nimble/drivers/dialog_cmac/src/ble_phy.c b/nimble/drivers/dialog_cmac/src/ble_phy.c index 9c9d87891..1e6a3c999 100644 --- a/nimble/drivers/dialog_cmac/src/ble_phy.c +++ b/nimble/drivers/dialog_cmac/src/ble_phy.c @@ -24,7 +24,6 @@ #include #include -#include #include "nimble/ble.h" #include "mcu/mcu.h" #include "mcu/cmac_timer.h" diff --git a/nimble/host/mesh/src/pb_adv.c b/nimble/host/mesh/src/pb_adv.c index 1fa2c35b2..35a02b0dc 100644 --- a/nimble/host/mesh/src/pb_adv.c +++ b/nimble/host/mesh/src/pb_adv.c @@ -20,7 +20,6 @@ #include "adv.h" #include "crypto.h" #include "beacon.h" -#include "prov.h" #include "mesh/glue.h" #define GPCF(gpc) (gpc & 0x03) diff --git a/nimble/host/mesh/src/pb_gatt.c b/nimble/host/mesh/src/pb_gatt.c index 9a0d7091e..865356eeb 100644 --- a/nimble/host/mesh/src/pb_gatt.c +++ b/nimble/host/mesh/src/pb_gatt.c @@ -14,7 +14,6 @@ #include "net.h" #include "proxy.h" #include "adv.h" -#include "prov.h" #include "syscfg/syscfg.h" #include "pb_gatt_srv.h" diff --git a/nimble/host/src/ble_att_cmd.c b/nimble/host/src/ble_att_cmd.c index e7192351c..6669392f1 100644 --- a/nimble/host/src/ble_att_cmd.c +++ b/nimble/host/src/ble_att_cmd.c @@ -24,7 +24,6 @@ #include "ble_hs_priv.h" #include "host/ble_att.h" #include "host/ble_uuid.h" -#include "ble_hs_priv.h" #if NIMBLE_BLE_CONNECT void * diff --git a/nimble/host/src/ble_hs_priv.h b/nimble/host/src/ble_hs_priv.h index 538d07a97..a57ec3cc8 100644 --- a/nimble/host/src/ble_hs_priv.h +++ b/nimble/host/src/ble_hs_priv.h @@ -29,7 +29,6 @@ #include "ble_hs_hci_priv.h" #include "ble_hs_atomic_priv.h" #include "ble_hs_conn_priv.h" -#include "ble_hs_atomic_priv.h" #include "ble_hs_mbuf_priv.h" #include "ble_hs_startup_priv.h" #include "ble_l2cap_priv.h" diff --git a/nimble/host/src/ble_uuid.c b/nimble/host/src/ble_uuid.c index 16352cf6e..acf016a13 100644 --- a/nimble/host/src/ble_uuid.c +++ b/nimble/host/src/ble_uuid.c @@ -21,7 +21,6 @@ #include #include #include -#include #include "os/os_mbuf.h" #include "nimble/ble.h" #include "ble_hs_priv.h"