diff --git a/source/libsmb/nterr.c b/source/libsmb/nterr.c index a52a1bc6e18..fc6340342f8 100644 --- a/source/libsmb/nterr.c +++ b/source/libsmb/nterr.c @@ -658,11 +658,6 @@ const char *nt_errstr(NTSTATUS nt_code) } #endif - if (NT_STATUS_IS_DOS(nt_code)) { - return smb_dos_err_name(NT_STATUS_DOS_CLASS(nt_code), - NT_STATUS_DOS_CODE(nt_code)); - } - while (nt_errs[idx].nt_errstr != NULL) { if (NT_STATUS_EQUAL(nt_errs[idx].nt_errcode, nt_code)) { return nt_errs[idx].nt_errstr;