diff options
author | David Vrabel <dv02@dv02pc01.europe.root.pri> | 2008-10-15 09:50:10 -0400 |
---|---|---|
committer | David Vrabel <dv02@dv02pc01.europe.root.pri> | 2008-10-15 09:50:10 -0400 |
commit | 92c4d9bd1648b3eaca6b8b8f8932eec390ba7327 (patch) | |
tree | 86e696c08aca7d30284319f1f6adabeeeace1f18 /drivers/usb/wusbcore/mmc.c | |
parent | 45c16cd9287819cf1c870f2d8e7738c4c90512ca (diff) |
uwb: use kcalloc where appropriate
Signed-off-by: David Vrabel <david.vrabel@csr.com>
Diffstat (limited to 'drivers/usb/wusbcore/mmc.c')
-rw-r--r-- | drivers/usb/wusbcore/mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/wusbcore/mmc.c b/drivers/usb/wusbcore/mmc.c index e5390b77aaa..76907286f15 100644 --- a/drivers/usb/wusbcore/mmc.c +++ b/drivers/usb/wusbcore/mmc.c | |||
@@ -43,7 +43,7 @@ | |||
43 | int wusbhc_mmcie_create(struct wusbhc *wusbhc) | 43 | int wusbhc_mmcie_create(struct wusbhc *wusbhc) |
44 | { | 44 | { |
45 | u8 mmcies = wusbhc->mmcies_max; | 45 | u8 mmcies = wusbhc->mmcies_max; |
46 | wusbhc->mmcie = kzalloc(mmcies * sizeof(wusbhc->mmcie[0]), GFP_KERNEL); | 46 | wusbhc->mmcie = kcalloc(mmcies, sizeof(wusbhc->mmcie[0]), GFP_KERNEL); |
47 | if (wusbhc->mmcie == NULL) | 47 | if (wusbhc->mmcie == NULL) |
48 | return -ENOMEM; | 48 | return -ENOMEM; |
49 | mutex_init(&wusbhc->mmcie_mutex); | 49 | mutex_init(&wusbhc->mmcie_mutex); |