Commit b4629aeb authored by Alexander Viro's avatar Alexander Viro Committed by Stephen Hemminger

[wan lapb] kill now-unused custom token container

Nothing is using lapb->token anymore; removed, along with the old "token"
argument of lapb_register().
parent b200a2aa
......@@ -453,7 +453,7 @@ static int comxlapb_init(struct net_device *dev)
lapbreg.disconnect_indication = comxlapb_disconnected;
lapbreg.data_indication = comxlapb_data_indication;
lapbreg.data_transmit = comxlapb_data_transmit;
if (lapb_register(dev, dev->priv, &lapbreg)) {
if (lapb_register(dev, &lapbreg)) {
return -ENOMEM;
}
if (ch->debug_flags & DEBUG_COMX_LAPB) {
......
......@@ -152,7 +152,7 @@ static int x25_open(hdlc_device *hdlc)
cb.data_indication = x25_data_indication;
cb.data_transmit = x25_data_transmit;
result = lapb_register(hdlc_to_dev(hdlc), hdlc, &cb);
result = lapb_register(hdlc_to_dev(hdlc), &cb);
if (result != LAPB_OK)
return result;
return 0;
......
......@@ -299,11 +299,9 @@ static struct lapb_register_struct lapbeth_callbacks = {
*/
static int lapbeth_open(struct net_device *dev)
{
struct lapbethdev *lapbeth;
int err;
lapbeth = (struct lapbethdev *)dev->priv;
if ((err = lapb_register(dev, lapbeth, &lapbeth_callbacks)) != LAPB_OK) {
if ((err = lapb_register(dev, &lapbeth_callbacks)) != LAPB_OK) {
printk(KERN_ERR "lapbeth: lapb_register error - %d\n", err);
return -ENODEV;
}
......
......@@ -500,7 +500,7 @@ static int x25_asy_open(struct net_device *dev)
/*
* Now attach LAPB
*/
if((err=lapb_register(dev, sl, &x25_asy_callbacks))==LAPB_OK)
if((err=lapb_register(dev, &x25_asy_callbacks))==LAPB_OK)
return 0;
/* Cleanup */
......
......@@ -44,7 +44,7 @@ struct lapb_parms_struct {
unsigned int mode;
};
extern int lapb_register(struct net_device *dev, void *token, struct lapb_register_struct *callbacks);
extern int lapb_register(struct net_device *dev, struct lapb_register_struct *callbacks);
extern int lapb_unregister(struct net_device *dev);
extern int lapb_getparms(struct net_device *dev, struct lapb_parms_struct *parms);
extern int lapb_setparms(struct net_device *dev, struct lapb_parms_struct *parms);
......
......@@ -81,7 +81,6 @@ struct lapb_frame {
struct lapb_cb {
struct list_head node;
struct net_device *dev;
void *token;
/* Link status fields */
unsigned int mode;
......
......@@ -140,7 +140,7 @@ static struct lapb_cb *lapb_create_cb(void)
return lapb;
}
int lapb_register(struct net_device *dev, void *token, struct lapb_register_struct *callbacks)
int lapb_register(struct net_device *dev, struct lapb_register_struct *callbacks)
{
struct lapb_cb *lapb;
int rc = LAPB_BADTOKEN;
......@@ -158,7 +158,6 @@ int lapb_register(struct net_device *dev, void *token, struct lapb_register_stru
if (!lapb)
goto out;
lapb->token = token;
lapb->dev = dev;
lapb->callbacks = *callbacks;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment