correct sizeof calculation

PR:		arm/128095
Submitted by:	Henning Petersen
MFC after:	1 week
This commit is contained in:
Sam Leffler 2008-10-14 16:27:52 +00:00
parent e7b0147d7e
commit 0c7b0d4568

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;