pstore/zone: Don't clear memory twice
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 9 Mar 2024 08:24:27 +0000 (09:24 +0100)
committerKees Cook <keescook@chromium.org>
Sat, 9 Mar 2024 20:33:22 +0000 (12:33 -0800)
commitc8d25d696f526a42ad8cf615dc1131c0b00c662e
tree0a108134d179c4d804d0bcff9069844ddda12591
parent98bc7e26e14fbb26a6abf97603d59532475e97f8
pstore/zone: Don't clear memory twice

There is no need to call memset(..., 0, ...) on memory allocated by
kcalloc(). It is already zeroed.

Remove the redundant call.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/fa2597400051c18c6ca11187b0e4b906729991b2.1709972649.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/zone.c