From: Matvejchikov Ilya Date: Sun, 10 Jul 2011 08:49:26 +0000 (+0000) Subject: slip: fix wrong SLIP6 ifdef-endif placing X-Git-Tag: firefly_0821_release~3680^2~5062^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7686d1cc5ed0932a533a5acbc3888b48de63bef8;p=firefly-linux-kernel-4.4.55.git slip: fix wrong SLIP6 ifdef-endif placing SLIP6 have nothing to do with CSLIP so placing a block of SLIP6-related code within a CSLIP ifdef-endif block is incorrect. Signed-off-by: Ilya Matvejchikov Signed-off-by: David S. Miller --- diff --git a/drivers/net/slip.c b/drivers/net/slip.c index 8ec1a9a0bb9a..2f110fb30daa 100644 --- a/drivers/net/slip.c +++ b/drivers/net/slip.c @@ -182,10 +182,10 @@ static int sl_alloc_bufs(struct slip *sl, int mtu) #ifdef SL_INCLUDE_CSLIP cbuff = xchg(&sl->cbuff, cbuff); slcomp = xchg(&sl->slcomp, slcomp); +#endif #ifdef CONFIG_SLIP_MODE_SLIP6 sl->xdata = 0; sl->xbits = 0; -#endif #endif spin_unlock_bh(&sl->lock); err = 0;