Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a492ac2 authored by Vinod Koul's avatar Vinod Koul
Browse files

dmaengine: zxdma: fix memset call



Fix the call to memset in this driver
[linux-4.2-next-20150911/drivers/dma/zx296702_dma.c:444]: (warning)
memset() called to fill 0 bytes of 'ds'.

Reported-by: default avatarDavid Binderman <dcb314@hotmail.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent aff1e0ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -441,7 +441,7 @@ static struct zx_dma_desc_sw *zx_alloc_desc_resource(int num,
		kfree(ds);
		return NULL;
	}
	memset(ds->desc_hw, sizeof(struct zx_desc_hw) * num, 0);
	memset(ds->desc_hw, 0, sizeof(struct zx_desc_hw) * num);
	ds->desc_num = num;
	return ds;
}