[PATCH 29/30] smb/client: remove useless elements from mapping_table_ERRSRV array

chenxiaosong.chenxiaosong@linux.dev posted 30 patches 1 week, 4 days ago
[PATCH 29/30] smb/client: remove useless elements from mapping_table_ERRSRV array
Posted by chenxiaosong.chenxiaosong@linux.dev 1 week, 4 days ago
From: ChenXiaoSong <chenxiaosong@kylinos.cn>

The last element in the array is no longer needed.

Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
---
 fs/smb/client/netmisc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/smb/client/netmisc.c b/fs/smb/client/netmisc.c
index 8f3242c1d3da..8f93047305af 100644
--- a/fs/smb/client/netmisc.c
+++ b/fs/smb/client/netmisc.c
@@ -143,9 +143,7 @@ static struct smb_to_posix_error mapping_table_ERRSRV[] = {
 	{ERRbadclient, -EACCES},
 	{ERRbadLogonTime, -EACCES},
 	{ERRpasswordExpired, -EKEYEXPIRED},
-
 	{ERRnosupport, -EINVAL},
-	{0, 0}
 };
 
 static unsigned int errsrv_num = sizeof(mapping_table_ERRSRV) /
-- 
2.43.0