diff options
author | Saurabh Sengar | 2015-10-28 08:14:35 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-12-01 23:26:33 +0100 |
commit | 84c1eeb02353ffcafe039e892410cad835334ba9 (patch) | |
tree | f8545cfc0a022bee95c1327bc1bd190207020bef /drivers/usb/host/whci/qset.c | |
parent | uwb: uwbd() is not freezable kthread (diff) | |
download | kernel-qcow2-linux-84c1eeb02353ffcafe039e892410cad835334ba9.tar.gz kernel-qcow2-linux-84c1eeb02353ffcafe039e892410cad835334ba9.tar.xz kernel-qcow2-linux-84c1eeb02353ffcafe039e892410cad835334ba9.zip |
usb : replace dma_pool_alloc and memset with dma_pool_zalloc
replace dma_pool_alloc and memset with a single call to dma_pool_zalloc
Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/whci/qset.c')
-rw-r--r-- | drivers/usb/host/whci/qset.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/whci/qset.c b/drivers/usb/host/whci/qset.c index dc31c425ce01..329747398f9a 100644 --- a/drivers/usb/host/whci/qset.c +++ b/drivers/usb/host/whci/qset.c @@ -30,10 +30,9 @@ struct whc_qset *qset_alloc(struct whc *whc, gfp_t mem_flags) struct whc_qset *qset; dma_addr_t dma; - qset = dma_pool_alloc(whc->qset_pool, mem_flags, &dma); + qset = dma_pool_zalloc(whc->qset_pool, mem_flags, &dma); if (qset == NULL) return NULL; - memset(qset, 0, sizeof(struct whc_qset)); qset->qset_dma = dma; qset->whc = whc; |