From cd7a4fa6ebbc59bd5e9ee9f87845228e614ca396 Mon Sep 17 00:00:00 2001 From: Hartmut Brandt Date: Sat, 26 Jul 2003 14:20:37 +0000 Subject: [PATCH] Silence a gcc-warning. Do this by inlining the macro-call. This is not very nice - the compiler should just silently optimize away the unused else clause. --- sys/netatm/atm_cm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/netatm/atm_cm.c b/sys/netatm/atm_cm.c index 8332e83b2be..aa3b0eacc4d 100644 --- a/sys/netatm/atm_cm.c +++ b/sys/netatm/atm_cm.c @@ -2779,8 +2779,7 @@ atm_cm_cpcs_data(cop, m) * We have to allocate another buffer and tack it * onto the front of the packet */ - KB_ALLOCPKT(n, llcp->v.llc_len, KB_F_NOWAIT, - KB_T_HEADER); + MGETHDR(n, KB_F_NOWAIT, KB_T_HEADER); if (n == 0) { err = ENOMEM; goto done; -- 2.45.2