]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: kpc2000: kpc_dma: Use kcalloc over kzalloc.
authorSam Muhammed <jane.pnx9@gmail.com>
Wed, 25 Mar 2020 14:26:41 +0000 (10:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2020 18:38:40 +0000 (19:38 +0100)
commit467879c282525775586e414a28423ece62a8f29f
tree283e1f62897660bfa5404a5b279b973002f79fb1
parent72106e3cac51152a7e10e5c8b1508e3ec0494313
Staging: kpc2000: kpc_dma: Use kcalloc over kzalloc.

Replace kzalloc(sizeof(...) * n, ...) with
kcalloc(n, sizeof(...), ...) since kcalloc is the
preferred API in case of allocating with multiply.

Checkpatch.pl: WARNING:
Prefer kcalloc over kzalloc with multiply.

Signed-off-by: Sam Muhammed <jane.pnx9@gmail.com>
Link: https://lore.kernel.org/r/4b8339d1e81e497c3c2f0dad57a9587338ec82b1.1585143581.git.jane.pnx9@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc_dma/fileops.c