lkml.org 
[lkml]   [2025]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 13/30] smb/client: remove useless elements from ntstatus_to_dos_map array
Date
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 | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/smb/client/netmisc.c b/fs/smb/client/netmisc.c
index 55100c2c14cf..4e6312593d6f 100644
--- a/fs/smb/client/netmisc.c
+++ b/fs/smb/client/netmisc.c
@@ -793,8 +793,7 @@ static struct ntstatus_to_dos ntstatus_to_dos_map[] = {
ERRDOS, ERRnoaccess, 0xc0000290}, {
ERRDOS, ERRbadfunc, 0xc000029c}, {
ERRDOS, ERRsymlink, NT_STATUS_STOPPED_ON_SYMLINK}, {
- ERRDOS, ERRinvlevel, 0x007c0001}, {
- 0, 0, 0 }
+ ERRDOS, ERRinvlevel, 0x007c0001},
};

static unsigned int ntstatus_to_dos_num = sizeof(ntstatus_to_dos_map) /
--
2.43.0

\
 
 \ /
  Last update: 2025-12-08 07:26    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog