net: ip: Fix a build issue when CONFIG_NETWORKING_WITH_LOGGING=n

Fixing this issue:
net/ip/l2_buf.c:81:31: note: in expansion of macro 'NULL'
 #define inc_free_l2_bufs_func NULL
                               ^
net/ip/l2_buf.c:88:2:
 note: in expansion of macro
 'inc_free_l2_bufs_func'
 inc_free_l2_bufs_func(buf);
 ^

Change-Id: Ie58f23af479ec4f2dd625b1f0f36720bbe54f928
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2016-02-19 09:48:35 +01:00 committed by Gerrit Code Review
commit 8a826102e0

View file

@ -78,7 +78,7 @@ static inline int get_free_l2_bufs(void)
#define dec_free_l2_bufs(...)
#define inc_free_l2_bufs(...)
#define get_free_l2_bufs(...)
#define inc_free_l2_bufs_func NULL
#define inc_free_l2_bufs_func(...)
#endif
static struct nano_fifo free_l2_bufs;