video: fbdev: of: display_timing: Remove a redundant zeroing of memory
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 22 Mar 2022 20:33:38 +0000 (21:33 +0100)
committerHelge Deller <deller@gmx.de>
Mon, 4 Apr 2022 06:55:23 +0000 (08:55 +0200)
commitaf11f31715b50ce77e50fa393bc530df0f33960b
tree5bc1d675b07866665b0ebe08eeff30732465a3aa
parent3123109284176b1532874591f7c81f3837bbdc17
video: fbdev: of: display_timing: Remove a redundant zeroing of memory

of_parse_display_timing() already call memset(0) on its 2nd argument, so
there is no need to clear it explicitly before calling this function.

Use kmalloc() instead of kzalloc() to save a few cycles.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/of_display_timing.c