diff options
author | Enzo Matsumiya <ematsumiya@suse.de> | 2022-08-17 19:14:02 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-08-18 01:07:13 +0200 |
commit | 68ed14496b032b0c9ef21b38ee45c6c8f3a18ff1 (patch) | |
tree | bc67ee611079610c5b03e81c29911cd7abd5d758 /fs/cifs/smb2misc.c | |
parent | cifs: missing directory in MAINTAINERS file (diff) | |
download | linux-68ed14496b032b0c9ef21b38ee45c6c8f3a18ff1.tar.xz linux-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/smb2misc.c')
-rw-r--r-- | fs/cifs/smb2misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/smb2misc.c b/fs/cifs/smb2misc.c index 6a6ec6efb45a..d73e5672aac4 100644 --- a/fs/cifs/smb2misc.c +++ b/fs/cifs/smb2misc.c @@ -222,7 +222,7 @@ smb2_check_message(char *buf, unsigned int len, struct TCP_Server_Info *server) } } - calc_len = smb2_calc_size(buf, server); + calc_len = smb2_calc_size(buf); /* For SMB2_IOCTL, OutputOffset and OutputLength are optional, so might * be 0, and not a real miscalculation */ @@ -410,7 +410,7 @@ smb2_get_data_area_len(int *off, int *len, struct smb2_hdr *shdr) * portion, the number of word parameters and the data portion of the message. */ unsigned int -smb2_calc_size(void *buf, struct TCP_Server_Info *srvr) +smb2_calc_size(void *buf) { struct smb2_pdu *pdu = buf; struct smb2_hdr *shdr = &pdu->hdr; |