cifs: Add helper function to check smb1+ server
authorZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Tue, 23 Aug 2022 12:52:02 +0000 (20:52 +0800)
committerSteve French <stfrench@microsoft.com>
Thu, 25 Aug 2022 03:30:09 +0000 (22:30 -0500)
commitd291e703f420d5f8f999fe54f360d54d213bddb4
tree12bac3fe7ea04b16c037e77d1b003c2922162fea
parentb6b3624d016b980f917b46e6b964f943ac5ac56e
cifs: Add helper function to check smb1+ server

SMB1 server's header_preamble_size is not 0, add use is_smb1 function
to simplify the code, no actual functional changes.

Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsencrypt.c
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/transport.c