projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c1eb31
)
smb/client: remove unused elements from smb2_error_map_table array
author
ChenXiaoSong
<chenxiaosong@kylinos.cn>
Fri, 5 Dec 2025 13:25:28 +0000
(21:25 +0800)
committer
Steve French
<stfrench@microsoft.com>
Fri, 5 Dec 2025 23:46:41 +0000
(17:46 -0600)
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>
fs/smb/client/smb2maperror.c
patch
|
blob
|
history
diff --git
a/fs/smb/client/smb2maperror.c
b/fs/smb/client/smb2maperror.c
index
1ada583
..
2b62806
100644
(file)
--- a/
fs/smb/client/smb2maperror.c
+++ b/
fs/smb/client/smb2maperror.c
@@
-23,8
+23,6
@@
struct status_to_posix_error {
};
static const struct status_to_posix_error smb2_error_map_table[] = {
- {STATUS_SUCCESS, 0, "STATUS_SUCCESS"},
- {STATUS_WAIT_0, 0, "STATUS_WAIT_0"},
{STATUS_WAIT_1, -EIO, "STATUS_WAIT_1"},
{STATUS_WAIT_2, -EIO, "STATUS_WAIT_2"},
{STATUS_WAIT_3, -EIO, "STATUS_WAIT_3"},
@@
-2415,7
+2413,6
@@
static const struct status_to_posix_error smb2_error_map_table[] = {
{STATUS_IPSEC_INTEGRITY_CHECK_FAILED, -EIO,
"STATUS_IPSEC_INTEGRITY_CHECK_FAILED"},
{STATUS_IPSEC_CLEAR_TEXT_DROP, -EIO, "STATUS_IPSEC_CLEAR_TEXT_DROP"},
- {0, 0, NULL}
};
int