From: Navya Sri Nizamkari Date: Tue, 10 Mar 2015 12:01:04 +0000 (+0530) Subject: staging: dgnc: Use kcalloc instead of kzalloc. X-Git-Tag: firefly_0821_release~176^2~1998^2~138^2~477 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2e363be0aa776f8ec19484e9c5e2d2beb68d7702;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index 55b5e6b8f1b3..b322985f7b6c 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) {