+6
−24
Loading
The smb2_error_map_table array currently has 1743 elements. When searching for the last element and calling smb2_print_status(), 3486 comparisons are needed. The loop in smb2_print_status() is unnecessary, smb2_print_status() can be removed, and only iterate over the array once, printing the message when the target status code is found. Signed-off-by:ChenXiaoSong <chenxiaosong@kylinos.cn> Signed-off-by:
Steve French <stfrench@microsoft.com>