X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fnet%2Fslip%2Fslip.c;h=d9ebe38b2becd8316b84b072a41ec8719650f972;hb=bb4efe4689dfdf4802bd1fd956123b2d98cc90ee;hp=ba08341fb92c6b4f5c3752c316d8de3d156e8c4a;hpb=0cfdc724390fb9370f27bb9a133eadf69114dd21;p=pandora-kernel.git diff --git a/drivers/net/slip/slip.c b/drivers/net/slip/slip.c index ba08341fb92c..d9ebe38b2bec 100644 --- a/drivers/net/slip/slip.c +++ b/drivers/net/slip/slip.c @@ -164,7 +164,7 @@ static int sl_alloc_bufs(struct slip *sl, int mtu) if (cbuff == NULL) goto err_exit; slcomp = slhc_init(16, 16); - if (slcomp == NULL) + if (IS_ERR(slcomp)) goto err_exit; #endif spin_lock_bh(&sl->lock); @@ -719,7 +719,7 @@ static void sl_sync(void) /* Find a free SLIP channel, and link in this `tty' line. */ -static struct slip *sl_alloc(dev_t line) +static struct slip *sl_alloc(void) { int i; char name[IFNAMSIZ]; @@ -800,7 +800,7 @@ static int slip_open(struct tty_struct *tty) /* OK. Find a free SLIP channel to use. */ err = -ENFILE; - sl = sl_alloc(tty_devnum(tty)); + sl = sl_alloc(); if (sl == NULL) goto err_exit;