Skip to content

Commit bf80d15

Browse files
ChenXiaoSongsmfrench
authored andcommitted
smb/client: remove unused elements from smb2_error_map_table array
STATUS_SUCCESS and STATUS_WAIT_0 are both zero, and since zero indicates success, they are not needed. Since smb2_print_status() has been removed, the last element in the array is no longer needed. Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 6c1eb31 commit bf80d15

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

fs/smb/client/smb2maperror.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ struct status_to_posix_error {
2323
};
2424

2525
static const struct status_to_posix_error smb2_error_map_table[] = {
26-
{STATUS_SUCCESS, 0, "STATUS_SUCCESS"},
27-
{STATUS_WAIT_0, 0, "STATUS_WAIT_0"},
2826
{STATUS_WAIT_1, -EIO, "STATUS_WAIT_1"},
2927
{STATUS_WAIT_2, -EIO, "STATUS_WAIT_2"},
3028
{STATUS_WAIT_3, -EIO, "STATUS_WAIT_3"},
@@ -2415,7 +2413,6 @@ static const struct status_to_posix_error smb2_error_map_table[] = {
24152413
{STATUS_IPSEC_INTEGRITY_CHECK_FAILED, -EIO,
24162414
"STATUS_IPSEC_INTEGRITY_CHECK_FAILED"},
24172415
{STATUS_IPSEC_CLEAR_TEXT_DROP, -EIO, "STATUS_IPSEC_CLEAR_TEXT_DROP"},
2418-
{0, 0, NULL}
24192416
};
24202417

24212418
int

0 commit comments

Comments
 (0)