diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2016-03-01 13:53:22 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@zephyrproject.org> | 2016-03-01 13:49:25 +0000 |
commit | 410d6849a62793bad59e5965747a479164b77bda (patch) | |
tree | 1afe16e1f9610c0618da057e2f6b2e02507d1fe6 | |
parent | bf2c827dcf1389d5d92ab1d58e0a305db0dd5026 (diff) |
net: Fix Bluetooth driver warning
This fixes warnings when compiling without
CONFIG_NETWORKING_WITH_LOGGING.
Change-Id: I50ee7004ba5c662ef2d6ff32b5dd3e1e41a92b5b
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
-rw-r--r-- | net/ip/net_driver_bt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ip/net_driver_bt.c b/net/ip/net_driver_bt.c index ed943f487..8b6bbf0d3 100644 --- a/net/ip/net_driver_bt.c +++ b/net/ip/net_driver_bt.c @@ -173,7 +173,9 @@ static int net_driver_bt_open(void) static int net_driver_bt_send(struct net_buf *buf) { +#ifdef CONFIG_NETWORKING_WITH_LOGGING int orig_len = ip_buf_len(buf); +#endif if (!NETSTACK_COMPRESS.compress(buf)) { NET_DBG("compression failed\n"); |