mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
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>
This commit is contained in:
parent
cb1185a4ae
commit
2e363be0aa
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue