From nobody Mon Feb 9 05:22:24 2026 Received: from out-182.mta1.migadu.com (out-182.mta1.migadu.com [95.215.58.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1ADF2DCF69 for ; Mon, 8 Dec 2025 06:23:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765175012; cv=none; b=D2PKnMrXz8yyA8aMiuVwCbYFfUgR6LXyrC0nDPU++7zKJErYmX9EhjYg+WLp+jEjtA0sesofUStBI019PucT0hTWpfOI4Ky7YQw2yzT5XbdOwz95or52a8f1aeRhfA2MBogl9XZiHp1lN8SimdJVqLB3GicnBQ/JRi++yYDsO4I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765175012; c=relaxed/simple; bh=n1zSusySdJp+Kk3R78OUhaCm++6eUPq6LYgtxK3tEV4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ardz8I6PDGcnbK/YhS5xKc9KRpwmM9S/KcuOfLF8dhTZEODNGgy1Np7Vb4bXHRm7b19eWjHMRjUTSxPmZPsbpHmpJwUiMYKAT4lTzuMbo6q/s9fzzKdEpMea1dLviJEC3NUFcDUT489p5rsMDfUB7PClQJw/0Te0UFvUnU3IAf8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=TNKo5/PD; arc=none smtp.client-ip=95.215.58.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="TNKo5/PD" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1765175008; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tyjZVoqYazpjp9poY9U+n5xVSreUjJKztp4p+eVljEM=; b=TNKo5/PDsRydnQHVEJfvUwkIBcElBkDJtD3LeJ4GLos9G3Kf4JxL/emGfl9wWkfrQiUhCr xPmFR+2ku0pctND3i9Q7Tr8GLml6vapjd6Ap7ERGp7NN22GCkB/lRPMHdqo56DGlD+wDfr KmzNVgPI/74xHtQxLFHzi0DY73xRlkY= From: chenxiaosong.chenxiaosong@linux.dev To: sfrench@samba.org, smfrench@gmail.com, linkinjeon@kernel.org, linkinjeon@samba.org Cc: linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org, liuzhengyuan@kylinos.cn, huhai@kylinos.cn, liuyun01@kylinos.cn, ChenXiaoSong Subject: [PATCH 19/30] smb/client: remove useless elements from nt_errs array Date: Mon, 8 Dec 2025 14:20:49 +0800 Message-ID: <20251208062100.3268777-20-chenxiaosong.chenxiaosong@linux.dev> In-Reply-To: <20251208062100.3268777-1-chenxiaosong.chenxiaosong@linux.dev> References: <20251208062100.3268777-1-chenxiaosong.chenxiaosong@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" From: ChenXiaoSong NT_STATUS_OK are zero, it is not needed. The last element in the array is no longer needed. Signed-off-by: ChenXiaoSong --- fs/smb/client/nterr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/smb/client/nterr.c b/fs/smb/client/nterr.c index 8d0007db6af9..faacec11c611 100644 --- a/fs/smb/client/nterr.c +++ b/fs/smb/client/nterr.c @@ -12,7 +12,6 @@ #include "nterr.h" =20 struct nt_err_code_struct nt_errs[] =3D { - {"NT_STATUS_OK", NT_STATUS_OK}, {"NT_STATUS_PENDING", NT_STATUS_PENDING}, {"NT_STATUS_MEDIA_CHANGED", NT_STATUS_MEDIA_CHANGED}, {"NT_STATUS_END_OF_MEDIA", NT_STATUS_END_OF_MEDIA}, @@ -684,7 +683,6 @@ struct nt_err_code_struct nt_errs[] =3D { {"NT_STATUS_NO_SUCH_JOB", NT_STATUS_NO_SUCH_JOB}, {"NT_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP", NT_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP}, - {NULL, 0} }; =20 unsigned int nt_err_num =3D sizeof(nt_errs) / --=20 2.43.0