diff options
author | Marcos Paulo de Souza <marcos.mage@gmail.com> | 2011-11-30 00:17:15 -0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-30 19:28:18 +0900 |
commit | ac31e9e8e67cb6424c95eeae9f256c28dc79f6f9 (patch) | |
tree | ff208ac0f26ed0fa366a8e2c9ffca8a37f54366d /drivers/staging/vt6656 | |
parent | 428c1fb50ec57587eb9d7e48439059cbfeb9330a (diff) | |
download | linux-stable-ac31e9e8e67cb6424c95eeae9f256c28dc79f6f9.tar.gz linux-stable-ac31e9e8e67cb6424c95eeae9f256c28dc79f6f9.tar.bz2 linux-stable-ac31e9e8e67cb6424c95eeae9f256c28dc79f6f9.zip |
staging: vt6656: main_usb.c: Use kzalloc instead kmalloc
Signed-off-by: Marcos Paulo de Souza <marcos.mage@gmail.com>
Cc: Forest Bond <forest@alittletooquiet.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6656')
-rw-r--r-- | drivers/staging/vt6656/main_usb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index 1b382a8f671d..173217bd792c 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -900,7 +900,7 @@ static BOOL device_alloc_bufs(PSDevice pDevice) { } // allocate rcb mem - pDevice->pRCBMem = kmalloc((sizeof(RCB) * pDevice->cbRD), GFP_KERNEL); + pDevice->pRCBMem = kzalloc((sizeof(RCB) * pDevice->cbRD), GFP_KERNEL); if (pDevice->pRCBMem == NULL) { DBG_PRT(MSG_LEVEL_ERR,KERN_ERR "%s : alloc rx usb context failed\n", pDevice->dev->name); goto free_tx; @@ -912,7 +912,6 @@ static BOOL device_alloc_bufs(PSDevice pDevice) { pDevice->FirstRecvMngList = NULL; pDevice->LastRecvMngList = NULL; pDevice->NumRecvFreeList = 0; - memset(pDevice->pRCBMem, 0, (sizeof(RCB) * pDevice->cbRD)); pRCB = (PRCB) pDevice->pRCBMem; for (ii = 0; ii < pDevice->cbRD; ii++) { |