Commit fd555edb authored by Andrew Morton's avatar Andrew Morton Committed by Greg Kroah-Hartman

[PATCH] gcc-3.5: drivers/atm/atmtcp.c

drivers/atm/atmtcp.c: In function `atmtcp_c_close':
drivers/atm/atmtcp.c:258: error: invalid lvalue in assignment
drivers/atm/atmtcp.c: In function `atmtcp_create':
drivers/atm/atmtcp.c:383: error: invalid lvalue in assignment
parent 6bf2c4c0
......@@ -255,7 +255,7 @@ static void atmtcp_c_close(struct atm_vcc *vcc)
dev_data = PRIV(atmtcp_dev);
dev_data->vcc = NULL;
if (dev_data->persist) return;
PRIV(atmtcp_dev) = NULL;
atmtcp_dev->dev_data = NULL;
kfree(dev_data);
shutdown_atm_dev(atmtcp_dev);
vcc->dev_data = NULL;
......@@ -380,7 +380,7 @@ static int atmtcp_create(int itf,int persist,struct atm_dev **result)
}
dev->ci_range.vpi_bits = MAX_VPI_BITS;
dev->ci_range.vci_bits = MAX_VCI_BITS;
PRIV(dev) = dev_data;
dev->dev_data = dev_data;
PRIV(dev)->vcc = NULL;
PRIV(dev)->persist = persist;
if (result) *result = dev;
......
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