]> Git Repo - linux.git/commit
ksmbd: Remove a redundant zeroing of memory
authorChristophe JAILLET <[email protected]>
Wed, 23 Mar 2022 06:32:05 +0000 (07:32 +0100)
committerSteve French <[email protected]>
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 <[email protected]>
Acked-by: Hyunchul Lee <[email protected]>
Acked-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
fs/ksmbd/smb2pdu.c
This page took 0.05544 seconds and 4 git commands to generate.