]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
Staging: kpc2000: Cleanup in kpc_dma_transfer()
authorMadhumitha Prabakaran <madhumithabiw@gmail.com>
Sun, 5 May 2019 18:32:30 +0000 (13:32 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 May 2019 05:40:38 +0000 (07:40 +0200)
commita301ecbc7ed0e27dde933e4c323204139cdc1694
treeb65b8c1466879b8ce8645f29cbdfd414ee8ec17b
parent5badafb1f0c94d0de48870a094631d0d07f93bb0
Staging: kpc2000: Cleanup in kpc_dma_transfer()

Remove unnecessary typecast in kzalloc function. In addition to that
replace kzalloc(sizeof(*acd)) over kzalloc(sizeof(struct aio_cb_data))
to maintain Linux kernel style.

Issue suggested by Coccinelle.

Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc_dma/fileops.c