]> git.ipfire.org Git - people/ms/linux.git/blobdiff - fs/cifs/netmisc.c
Merge branch 'for-6.0/dax' into libnvdimm-fixes
[people/ms/linux.git] / fs / cifs / netmisc.c
index 235aa1b395ebcce0b9ba1bfb42a62909089f3182..1b52e6ac431cb045e2495bc7437760217d107865 100644 (file)
@@ -909,9 +909,9 @@ map_and_check_smb_error(struct mid_q_entry *mid, bool logErr)
  * portion, the number of word parameters and the data portion of the message
  */
 unsigned int
-smbCalcSize(void *buf, struct TCP_Server_Info *server)
+smbCalcSize(void *buf)
 {
-       struct smb_hdr *ptr = (struct smb_hdr *)buf;
+       struct smb_hdr *ptr = buf;
        return (sizeof(struct smb_hdr) + (2 * ptr->WordCount) +
                2 /* size of the bcc field */ + get_bcc(ptr));
 }