diff options
author | Zhang Xiaoxu <zhangxiaoxu5@huawei.com> | 2022-08-23 15:52:00 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-08-25 06:29:59 +0300 |
commit | 9789de8bdc92a9ec95c9bc7b43e94de91acc4460 (patch) | |
tree | 2ff02511b4a0cb0b131b3927dc5b785762b06735 /fs/cifs/cifsglob.h | |
parent | a1d2eb51f0a33c28f5399a1610e66b3fbd24e884 (diff) | |
download | linux-9789de8bdc92a9ec95c9bc7b43e94de91acc4460.tar.xz |
cifs: Use help macro to get the header preamble size
It's better to use HEADER_PREAMBLE_SIZE because the unfolded expression
too long. No actual functional changes, minor readability improvement.
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index f15d7b0c123d..b15b84d03fb6 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -557,6 +557,7 @@ struct smb_version_values { #define HEADER_SIZE(server) (server->vals->header_size) #define MAX_HEADER_SIZE(server) (server->vals->max_header_size) +#define HEADER_PREAMBLE_SIZE(server) (server->vals->header_preamble_size) /** * CIFS superblock mount flags (mnt_cifs_flags) to consider when |