From patchwork Tue Feb 20 05:47:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 203426 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp209612dyc; Mon, 19 Feb 2024 21:48:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVGucFPHYu4lmnZdaO68YWh2yHaQKzxrrt4WV9w+n4lY/0XIA2qfMZmaJe1D0bi4lliVeaSNUIJJrczaRXsn1WqiGIoog== X-Google-Smtp-Source: AGHT+IHnetkOFz9Df9Ouh2XBuzsuxnM5XlYpU8nKtr1hbTndmxjqbGQQ0qxsn7xtb9llyBrc98qT X-Received: by 2002:a05:6871:e00f:b0:21e:87ce:87c4 with SMTP id by15-20020a056871e00f00b0021e87ce87c4mr10615214oac.13.1708408092894; Mon, 19 Feb 2024 21:48:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708408092; cv=pass; d=google.com; s=arc-20160816; b=l0PSzIbkqsDU8iAJkdZOFOUO+P4+24GTETuiDRUGZ0Cr+X5OBlWeP/54BkQzAQfTIK 9CbYab13EJ8FjiiXRytx9qcehW/fF6KLo7CCY47LN+7NIYRGHptjCz3zRhSkqVBsJhxM zmjvDNEA/yLApXzfKPg76z2SzWKNHPzYFQNstPYljT/q49SgjI+Wg1PrarKtzukDiWc1 7iLQqExz1mlMu1WC7v/i4bTSpSUhmY4fTrA7uCD1hpiZ2Bvd3UBWpXfGBMSyGZX9C3jv uPXvniW8XYRlJhwnfuEe8SZSBOUq0Nr24/+33L+A2Lqm/N0k8tKRxfdgNo93kdhTKT44 fNTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=GWNgfD4exvGZgvarZGxLZ4/BQ0zHoceN3/WhwKFRuFI=; fh=6CRXDZtSUlA65udy4QBfdpRtVK2u4XV7QTdaUoELUM0=; b=OErVYYVuRmEYnTDrZyYRbOnoMnFXgPbtt8HqCCcNjA+zEK5qgixTe2W1lLZeJFMgsD BOztJNfl2Yl4qigjp/iSrNP3maWpn0Z0C4UDJX4Qm82BJx3TmxtVSiAziQ/JUNvEzcAw hDzciusYTreU19roco6VlsAWA25bge1pJA+D2ZfzA72mrBuCPrBCkv+cEs3xZEvrLCzs /nF/Nz3fOrgJE+WNZ75wIh79byex7YEMcOotGRRVkLnikayRb4moH13SS8ebfSPs+7qU 9JAvl0ZkEABvCUsppq7aWkun+lhzvs0jlQXLVBGLMT/NCz7v4cAWK0IOM9ezoD8QwzNw fS8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-72361-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72361-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 71-20020a63004a000000b005d8b5979996si5755613pga.492.2024.02.19.21.48.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 21:48:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72361-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-72361-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72361-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id AC633283748 for ; Tue, 20 Feb 2024 05:48:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B26DF5789A; Tue, 20 Feb 2024 05:47:59 +0000 (UTC) Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id 3331545942; Tue, 20 Feb 2024 05:47:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=42.101.60.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708408078; cv=none; b=b3tnxKMQEBOxqKK1lpi0feRyRWv6oV1wb9hK2r/IhCs52biy5CBlJB/IoirQvi4nhnGC0OdKlbCN5LFwSTCgIe4zlZMI3Rbk8RmMfqxgYl1vJsbDP5VZa9Oyvl2fH+6gFrqJ0wo2CjNVf4IfZfyHOhoe4qa3NTZFuwroxr50TT4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708408078; c=relaxed/simple; bh=wY1HYl2XkOtEM52sVVhgKFR+TXADjtjGZU+zJjoT+os=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=tTWKlPLLo078IJ2jgh/FWfeb/bgOK+NRbYE+5AH5+m6AEDG9XSH4vZCm3dxWpLUK8pZqrkozh7HCKmrlxiylCT7yAqczRoOIuK6bmsP0jM11eUAu6TClj1gs5S2X64zR5sdyncYfw9P0LkMN/B4/wt+y8XJBIcZxHWxMm4eSMYM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com; spf=pass smtp.mailfrom=nfschina.com; arc=none smtp.client-ip=42.101.60.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id E9A9560263E24; Tue, 20 Feb 2024 13:47:41 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?utf-8?q?fs=5Fcontext=3A_Remove_unnecessary_=E2=80=980?= =?utf-8?q?=E2=80=99_values_from_ret?= Date: Tue, 20 Feb 2024 13:47:35 +0800 Message-Id: <20240220054735.65310-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791395724692627441 X-GMAIL-MSGID: 1791395724692627441 The ret variable is assigned when it does not need to be defined, as it has already been assigned before use. Signed-off-by: Li zeming --- fs/fs_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fs_context.c b/fs/fs_context.c index 98589aae52085..3ff30227a061a 100644 --- a/fs/fs_context.c +++ b/fs/fs_context.c @@ -207,7 +207,7 @@ int vfs_parse_monolithic_sep(struct fs_context *fc, void *data, char *(*sep)(char **)) { char *options = data, *key; - int ret = 0; + int ret; if (!options) return 0;