From: Alexander Aring Date: Thu, 17 Nov 2022 17:11:56 -0500 Subject: [Cluster-devel] [PATCH dlm/next 17/18] fs: dlm: don't init error value In-Reply-To: <20221117221157.2396743-1-aahringo@redhat.com> References: <20221117221157.2396743-1-aahringo@redhat.com> Message-ID: <20221117221157.2396743-17-aahringo@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This patch removes a init of an error value to -EINVAL which is not necessary. Signed-off-by: Alexander Aring --- fs/dlm/lowcomms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c index 643f9810ec35..c6b91f67a2c2 100644 --- a/fs/dlm/lowcomms.c +++ b/fs/dlm/lowcomms.c @@ -1830,7 +1830,7 @@ static const struct dlm_proto_ops dlm_sctp_ops = { int dlm_lowcomms_start(void) { - int error = -EINVAL; + int error; init_local(); if (!dlm_local_count) { -- 2.31.1