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>
This commit is contained in:
Luiz Augusto von Dentz 2016-03-01 13:53:22 +02:00 committed by Gerrit Code Review
commit 410d6849a6

View file

@ -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");