[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m363ro3ult.fsf@maximus.localdomain>
Date: Wed, 02 Jul 2008 22:21:34 +0200
From: Krzysztof Halasa <khc@...waw.pl>
To: Adrian Bunk <bunk@...nel.org>
Cc: netdev@...r.kernel.org, lkml <linux-kernel@...r.kernel.org>
Subject: Re: WAN: Remove dead code from wanmain.c, CONFIG_WANPIPE_MULTPPP doesn't exist
Adrian Bunk <bunk@...nel.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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists