ksmbd: Remove a redundant zeroing of memory
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 23 Mar 2022 06:32:05 +0000 (07:32 +0100)
committerSteve French <stfrench@microsoft.com>
Wed, 30 Mar 2022 13:17:53 +0000 (08:17 -0500)
commit56b401fb0c506120f25c1b4feeb96d9117efe171
treec13ea459fa4f61f7f4e8df47f0b58690c94b2bbc
parent99e2aee3f925aab540b1675c8a8beb951e764f9e
ksmbd: Remove a redundant zeroing of memory

fill_transform_hdr() has only one caller that already clears tr_buf (it is
kzalloc'ed).

So there is no need to clear it another time here.

Remove the superfluous memset() and add a comment to remind that the caller
must clear the buffer.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Hyunchul Lee <hyc.lee@gmail.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2pdu.c