diff options
author | Yu Zhe <yuzhe@nfschina.com> | 2022-06-30 11:30:27 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-08-01 08:34:44 +0200 |
commit | 0f46608ae7a138ae5982f97414e8cfc38a2e0f7e (patch) | |
tree | 1e8299ffc007c005dfe8ee8512d542002129fbd8 /fs/cifs/smb2pdu.c | |
parent | cifs: remove redundant initialization to variable mnt_sign_enabled (diff) | |
download | linux-0f46608ae7a138ae5982f97414e8cfc38a2e0f7e.tar.xz linux-0f46608ae7a138ae5982f97414e8cfc38a2e0f7e.zip |
cifs: remove unnecessary type castings
remove unnecessary void* type castings.
Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r-- | fs/cifs/smb2pdu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index c705de32e225..295ee8b88055 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -354,7 +354,7 @@ fill_small_buf(__le16 smb2_command, struct cifs_tcon *tcon, void *buf, unsigned int *total_len) { - struct smb2_pdu *spdu = (struct smb2_pdu *)buf; + struct smb2_pdu *spdu = buf; /* lookup word count ie StructureSize from table */ __u16 parmsize = smb2_req_struct_sizes[le16_to_cpu(smb2_command)]; |