lkml.org 
[lkml]   [2008]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: WAN: Remove dead code from wanmain.c, CONFIG_WANPIPE_MULTPPP doesn't exist
From
Date
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


\
 
 \ /
  Last update: 2008-07-02 22:23    [W:0.062 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site