diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-03-22 21:33:38 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-04-04 08:55:23 +0200 |
commit | af11f31715b50ce77e50fa393bc530df0f33960b (patch) | |
tree | 5bc1d675b07866665b0ebe08eeff30732465a3aa /drivers | |
parent | 3123109284176b1532874591f7c81f3837bbdc17 (diff) | |
download | linux-af11f31715b50ce77e50fa393bc530df0f33960b.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/of_display_timing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/of_display_timing.c b/drivers/video/of_display_timing.c index f93b6abbe258..bebd371c6b93 100644 --- a/drivers/video/of_display_timing.c +++ b/drivers/video/of_display_timing.c @@ -199,7 +199,7 @@ struct display_timings *of_get_display_timings(const struct device_node *np) struct display_timing *dt; int r; - dt = kzalloc(sizeof(*dt), GFP_KERNEL); + dt = kmalloc(sizeof(*dt), GFP_KERNEL); if (!dt) { pr_err("%pOF: could not allocate display_timing struct\n", np); |