
9 Mar
2011
9 Mar
'11
8:35 a.m.
On Tuesday, March 08, 2011 09:25:52 Michal Simek wrote:
+int xilinx_axiemac_initialize(bd_t *bis, int base_addr, int dma_addr) +{
- struct eth_device *dev;
- struct axidma_priv *dma;
- dev = calloc(1, sizeof(struct eth_device));
- if (dev == NULL)
return -1;
- dev->priv = calloc(1, sizeof(struct axidma_priv));
- if (dev->priv == NULL)
return -1;
this 2nd error checker should call free(dev). the rest is copacetic. -mike