Messages in this thread | | | Subject | Re: WAN: Remove dead code from wanmain.c, CONFIG_WANPIPE_MULTPPP doesn't exist | From | Krzysztof Halasa <> | Date | Wed, 02 Jul 2008 22:21:34 +0200 |
| |
Adrian Bunk <bunk@kernel.org> writes:
>> -#ifdef CONFIG_WANPIPE_MULTPPP >> - pppdev = kzalloc(sizeof(struct ppp_device), GFP_KERNEL); >> - err = -ENOBUFS; >> - if (pppdev == NULL) >> - goto out; >> - pppdev->dev = kzalloc(sizeof(struct net_device), GFP_KERNEL); >> - if (pppdev->dev == NULL) { >> - kfree(pppdev); >> - err = -ENOBUFS; >> - goto out; >> - } >> - err = wandev->new_if(wandev, (struct net_device *)pppdev, cnf); >> - dev = pppdev->dev; >> -#else >> printk(KERN_INFO "%s: Wanpipe Mulit-Port PPP support has not been compiled in!\n", >> wandev->name); > > The printk() also needs some updating.
Agreed. -- Krzysztof Halasa
| |