diff options
author | Qinglang Miao <miaoqinglang@huawei.com> | 2020-07-25 11:56:01 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-08-03 02:00:26 +0300 |
commit | 1a0e7f7c3c573a79bcd787d8a05e80651041b815 (patch) | |
tree | e07a318c3d5e4a0553c6dca3e1eab49508e5a22b /fs/cifs/connect.c | |
parent | a03f507de5f44673cd7c67e24f64b479057c2ce0 (diff) | |
download | linux-1a0e7f7c3c573a79bcd787d8a05e80651041b815.tar.xz |
cifs: convert to use be32_add_cpu()
Convert cpu_to_be32(be32_to_cpu(E1) + E2) to use be32_add_cpu().
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index a61abde09ffe..fe4b55977dd8 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -5114,8 +5114,7 @@ CIFSTCon(const unsigned int xid, struct cifs_ses *ses, bcc_ptr += strlen("?????"); bcc_ptr += 1; count = bcc_ptr - &pSMB->Password[0]; - pSMB->hdr.smb_buf_length = cpu_to_be32(be32_to_cpu( - pSMB->hdr.smb_buf_length) + count); + be32_add_cpu(&pSMB->hdr.smb_buf_length, count); pSMB->ByteCount = cpu_to_le16(count); rc = SendReceive(xid, ses, smb_buffer, smb_buffer_response, &length, |