Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1539846rdb; Mon, 19 Feb 2024 21:48:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUmzwJfLCJbzqbRodulDW1B/Vfrl//yAt/9jqec6GdhM6rVjXaotK1u3roB3vtYZ1yL9TeKdcf2tNFnmyBTzaSWHWv/0dg0JFUMgj0X3g== X-Google-Smtp-Source: AGHT+IEhKCRAoByIOY03Vxk8BOx0nkHEd6n8dzdKB22wz4Cb/Js/8ySDi9gtkv6d7Fp3st3S2Wv3 X-Received: by 2002:a05:620a:1217:b0:787:1aa4:db8d with SMTP id u23-20020a05620a121700b007871aa4db8dmr17604613qkj.54.1708408086818; Mon, 19 Feb 2024 21:48:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708408086; cv=pass; d=google.com; s=arc-20160816; b=JRF9PMFk/pkX7VdwPPzeTWXw5Vi8rcsvGlgS6xNxM3DF4CNboqo3yJy2JDjjfZREL8 A6hHMn0Db7iaTW65RzPV4NWekXCu+mgB0GgLH2DTV/XbbsH3iQjtUShq/QG0Vlxq7Eei k/uJjB0Du4/5BIu00lvTzeMY6Ok9Iin9kIg9P5WEF5cadLltAdqYwGxtoGufZdCQy8qB 6oAww9UfjINrPTgBtOyQaj6aP8GeCAsjrXibhcuABzZWC0FMVV0J9fNWNheIMLVyfQMm 4h8/OvUQ4MheTqXQtzszLCh3+K17Hg3vspjdDu0Ok2Y9kKyoHbxy8FtdGqJOaTauwswC GLuA== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72361-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id oo2-20020a05620a530200b00787720524f9si2080909qkn.124.2024.02.19.21.48.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 21:48:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72361-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-kernel+bounces-72361-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72361-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8D1A31C2165F for ; Tue, 20 Feb 2024 05:48:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC80357316; Tue, 20 Feb 2024 05:47:58 +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:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=980=E2=80=99=20values=20from=20ret?= 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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; -- 2.18.2