uwb: use kcalloc where appropriate
Signed-off-by: David Vrabel <david.vrabel@csr.com>
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
int wusbhc_mmcie_create(struct wusbhc *wusbhc)
|
||||
{
|
||||
u8 mmcies = wusbhc->mmcies_max;
|
||||
wusbhc->mmcie = kzalloc(mmcies * sizeof(wusbhc->mmcie[0]), GFP_KERNEL);
|
||||
wusbhc->mmcie = kcalloc(mmcies, sizeof(wusbhc->mmcie[0]), GFP_KERNEL);
|
||||
if (wusbhc->mmcie == NULL)
|
||||
return -ENOMEM;
|
||||
mutex_init(&wusbhc->mmcie_mutex);
|
||||
|
Reference in New Issue
Block a user