summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgnc
diff options
context:
space:
mode:
authorNavya Sri Nizamkari <navyasri.tech@gmail.com>2015-03-10 17:31:04 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-12 11:10:18 +0100
commit2e363be0aa776f8ec19484e9c5e2d2beb68d7702 (patch)
treeb74fce7ce85fbd0956fadeea073dad44630276fb /drivers/staging/dgnc
parentcb1185a4ae29367d00b0ae19413d64303c8c0e51 (diff)
downloadop-kernel-dev-2e363be0aa776f8ec19484e9c5e2d2beb68d7702.zip
op-kernel-dev-2e363be0aa776f8ec19484e9c5e2d2beb68d7702.tar.gz
staging: dgnc: Use kcalloc instead of kzalloc.
This patch uses kcalloc instead of kzalloc function. A coccinelle script was used to make this change. Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r--drivers/staging/dgnc/dgnc_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c
index 55b5e6b..b322985 100644
--- a/drivers/staging/dgnc/dgnc_driver.c
+++ b/drivers/staging/dgnc/dgnc_driver.c
@@ -409,7 +409,7 @@ static int dgnc_found_board(struct pci_dev *pdev, int id)
return -ENOMEM;
/* make a temporary message buffer for the boot messages */
- brd->msgbuf_head = kzalloc(sizeof(u8) * 8192, GFP_KERNEL);
+ brd->msgbuf_head = kcalloc(8192, sizeof(u8), GFP_KERNEL);
brd->msgbuf = brd->msgbuf_head;
if (!brd->msgbuf) {
OpenPOWER on IntegriCloud