correct sizeof calculation

PR:		arm/128095
Submitted by:	Henning Petersen
MFC after:	1 week
This commit is contained in:
sam 2008-10-14 16:27:52 +00:00
parent aa0334ca2f
commit fdfb3870dc

View File

@ -448,7 +448,7 @@ npe_dma_setup(struct npe_softc *sc, struct npedma *dma,
{
int error, i;
memset(dma, 0, sizeof(dma));
memset(dma, 0, sizeof(*dma));
dma->name = name;
dma->nbuf = nbuf;