aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.c
diff options
context:
space:
mode:
authorYu Zhe <yuzhe@nfschina.com>2022-06-30 17:30:27 +0800
committerSteve French <stfrench@microsoft.com>2022-08-01 01:34:44 -0500
commit0f46608ae7a138ae5982f97414e8cfc38a2e0f7e (patch)
tree1e8299ffc007c005dfe8ee8512d542002129fbd8 /fs/cifs/smb2pdu.c
parentcifs: remove redundant initialization to variable mnt_sign_enabled (diff)
downloadlinux-dev-0f46608ae7a138ae5982f97414e8cfc38a2e0f7e.tar.xz
linux-dev-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.c2
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)];