fbdev: auo_k190x: Use zeroing memory allocator instead of allocator/memset
authorHimanshu Jha <himanshujha199640@gmail.com>
Thu, 4 Jan 2018 15:53:50 +0000 (16:53 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Thu, 4 Jan 2018 15:53:50 +0000 (16:53 +0100)
commitf950bc7880b31cfede87d99fbc4fd4d2b40914c5
tree4560702dea9709cbcc2a8806e8dbd4ac7d28535d
parent7b9faf5df0ac495a1a3d7cdb64921c179f9008ac
fbdev: auo_k190x: Use zeroing memory allocator instead of allocator/memset

Use vzalloc for allocating zeroed memory and remove unnecessary
memset function.

Done using Coccinelle.
Generated-by scripts/coccinelle/api/alloc/kzalloc-simple.cocci.
0-day tested with no failures.

Suggested-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
[b.zolnierkie: fixed minor issues in the patch description]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/auo_k190x.c