summaryrefslogtreecommitdiffstats
path: root/fs/cifs/misc.c
diff options
context:
space:
mode:
authorEnzo Matsumiya <ematsumiya@suse.de>2022-08-17 14:14:02 -0300
committerSteve French <stfrench@microsoft.com>2022-08-17 18:07:13 -0500
commit68ed14496b032b0c9ef21b38ee45c6c8f3a18ff1 (patch)
treebc67ee611079610c5b03e81c29911cd7abd5d758 /fs/cifs/misc.c
parent5dd8ce24667a70bb9f7808f5eec0354bd37290c6 (diff)
downloadlinux-stable-68ed14496b032b0c9ef21b38ee45c6c8f3a18ff1.tar.gz
linux-stable-68ed14496b032b0c9ef21b38ee45c6c8f3a18ff1.tar.bz2
linux-stable-68ed14496b032b0c9ef21b38ee45c6c8f3a18ff1.zip
cifs: remove unused server parameter from calc_smb_size()
This parameter is unused by the called function Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz> Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/misc.c')
-rw-r--r--fs/cifs/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c
index 34d990f06fd6..1f2628ffe9d7 100644
--- a/fs/cifs/misc.c
+++ b/fs/cifs/misc.c
@@ -354,7 +354,7 @@ checkSMB(char *buf, unsigned int total_read, struct TCP_Server_Info *server)
/* otherwise, there is enough to get to the BCC */
if (check_smb_hdr(smb))
return -EIO;
- clc_len = smbCalcSize(smb, server);
+ clc_len = smbCalcSize(smb);
if (4 + rfclen != total_read) {
cifs_dbg(VFS, "Length read does not match RFC1001 length %d\n",