]> git.baikalelectronics.ru Git - kernel.git/commitdiff
cifs: remove unnecessary (void*) conversions.
authorYu Zhe <yuzhe@nfschina.com>
Tue, 14 Jun 2022 08:54:49 +0000 (01:54 -0700)
committerSteve French <stfrench@microsoft.com>
Mon, 1 Aug 2022 06:34:44 +0000 (01:34 -0500)
One more.

remove unnecessary void* type castings.

Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifs_debug.c

index 2cfbac8bb965059f2ec34d62c2b2a13fcfa179fd..97116c1710e2c32261725133b0d981b7885bb41d 100644 (file)
@@ -36,7 +36,7 @@ cifs_dump_mem(char *label, void *data, int length)
 void cifs_dump_detail(void *buf, struct TCP_Server_Info *server)
 {
 #ifdef CONFIG_CIFS_DEBUG2
-       struct smb_hdr *smb = (struct smb_hdr *)buf;
+       struct smb_hdr *smb = buf;
 
        cifs_dbg(VFS, "Cmd: %d Err: 0x%x Flags: 0x%x Flgs2: 0x%x Mid: %d Pid: %d\n",
                 smb->Command, smb->Status.CifsError,