From 410d6849a62793bad59e5965747a479164b77bda Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 1 Mar 2016 13:53:22 +0200 Subject: 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 --- net/ip/net_driver_bt.c | 2 ++ 1 file changed, 2 insertions(+) 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"); -- cgit v1.2.3