diff options
author | Yu Zhe <yuzhe@nfschina.com> | 2022-06-30 17:30:27 +0800 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-08-01 01:34:44 -0500 |
commit | 0f46608ae7a138ae5982f97414e8cfc38a2e0f7e (patch) | |
tree | 1e8299ffc007c005dfe8ee8512d542002129fbd8 /fs/cifs/smb2misc.c | |
parent | 4da2cd0517e08c2a996b5f3e8914bdda0286d911 (diff) |
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/smb2misc.c')
-rw-r--r-- | fs/cifs/smb2misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2misc.c b/fs/cifs/smb2misc.c index 17813c3d0c6e..db0f27fd373b 100644 --- a/fs/cifs/smb2misc.c +++ b/fs/cifs/smb2misc.c @@ -402,7 +402,7 @@ smb2_get_data_area_len(int *off, int *len, struct smb2_hdr *shdr) unsigned int smb2_calc_size(void *buf, struct TCP_Server_Info *srvr) { - struct smb2_pdu *pdu = (struct smb2_pdu *)buf; + struct smb2_pdu *pdu = buf; struct smb2_hdr *shdr = &pdu->hdr; int offset; /* the offset from the beginning of SMB to data area */ int data_length; /* the length of the variable length data area */ |