diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2018-06-01 10:53:03 +1000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-05-31 21:30:51 -0500 |
commit | 0d5a288d25291707bfab128f23585e6d07cf7d42 (patch) | |
tree | b3c82dba1fac4ac165602665dcf5a073911cc245 /fs/cifs/smb2misc.c | |
parent | 977b6170407894fcdd9bf8ea82dac563abda79e7 (diff) | |
download | linux-0d5a288d25291707bfab128f23585e6d07cf7d42.tar.bz2 |
cifs: remove struct smb2_oplock_break_rsp
The two structures smb2_oplock_breaq_req/rsp are now basically identical.
Replace this with a single definition of a smb2_oplock_break structure.
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
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 8e45e28ce3ac..e66e91227967 100644 --- a/fs/cifs/smb2misc.c +++ b/fs/cifs/smb2misc.c @@ -617,7 +617,7 @@ smb2_is_valid_lease_break(char *buffer) bool smb2_is_valid_oplock_break(char *buffer, struct TCP_Server_Info *server) { - struct smb2_oplock_break_rsp *rsp = (struct smb2_oplock_break_rsp *)buffer; + struct smb2_oplock_break *rsp = (struct smb2_oplock_break *)buffer; struct list_head *tmp, *tmp1, *tmp2; struct cifs_ses *ses; struct cifs_tcon *tcon; @@ -626,7 +626,7 @@ smb2_is_valid_oplock_break(char *buffer, struct TCP_Server_Info *server) cifs_dbg(FYI, "Checking for oplock break\n"); - if (rsp->hdr.sync_hdr.Command != SMB2_OPLOCK_BREAK) + if (rsp->sync_hdr.Command != SMB2_OPLOCK_BREAK) return false; if (rsp->StructureSize != |