Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp891695pxt; Fri, 6 Aug 2021 17:09:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGFLwCANT83rJApJGPVeHfXaW4iSUDCLylsWokUAKWjt2dCBY4o8mjZoMWqeDb6G9Oox0q X-Received: by 2002:a02:8241:: with SMTP id q1mr12050754jag.134.1628294988058; Fri, 06 Aug 2021 17:09:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628294988; cv=none; d=google.com; s=arc-20160816; b=AOfc3iofKcpqanyzrks+QEQJUfrNyXC8nhEq2Cd7fwWlwgrlvZPLqODWQ+q/G0LuK0 ysVOgrcdfRoTWyR6G3bf+nj8us85+nG97SvAeSfRFyPPGPib2FyQcAh4kX6YmVeerbvv 4B4Xuhr1LsXOBP0ir5yGPSt0/LJggZQIV7O8ybdWBd5wvSviJcSgWfO2x9NPs+qBSsDy FW40OsE7TGKTB7A8wfR+tTT99Zc6ZQ6GgteqYKx/egSW8ohPQ1ANJ4GLXXlZxtnbxH3u vi15b9NnPXpVdYQJFuhDLUdbcJfpC2sm85jixPJvqH74bM0ng0hX7C7+fKPk3X7+4/kw pdGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ab3EdjSuONWUB8bUgHwkc+Z4oO1WjfAhUdmT3WRANQs=; b=s3yvKVaCtvNJRL+D8nbDDulYbEa8+xFfJCuEotuz3S9AEaRkMpL0qXfFQVHyZgPUNU Hszv6NG3cS2/l6CvvBI+mGTxNsJajr8Gqk934CQcg1gbZ/SydfrCsmZA9pyvss2gRMZ7 Vxoz6pp8BHIWiUMWAPW2P7NLJsshKW5XtDVN8V7zRC5/BIzrONeXQIvI7jhTWlKwUIlC c6Ewn7lKei+ddOvWt3OLX2mpekhSWJp1nHC2j564F8OJQUqnY6jkPNgveDmivu4PlQcB C38Q/6K/XnronYsgKRfR18kXoudisATnLjBPw4t+iHnUoqh9C/zt1Un9l9qL1xL9iT8C 8nKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b16si10668027iln.129.2021.08.06.17.09.36; Fri, 06 Aug 2021 17:09:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244416AbhHFUDR (ORCPT + 99 others); Fri, 6 Aug 2021 16:03:17 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:40267 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244402AbhHFUDQ (ORCPT ); Fri, 6 Aug 2021 16:03:16 -0400 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 3727F60003; Fri, 6 Aug 2021 20:02:57 +0000 (UTC) From: Miquel Raynal To: Jason Wang , miquel.raynal@bootlin.com Cc: liang.yang@amlogic.com, vigneshr@ti.com, narmstrong@baylibre.com, khilman@baylibre.com, richard@nod.at, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com, linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: rawnand: remove never changed ret variable Date: Fri, 6 Aug 2021 22:02:57 +0200 Message-Id: <20210806200257.393527-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210803113300.24230-1-wangborong@cdjrlc.com> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'74a021a632b07dd990e85e815b8757921b23db4b' Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-08-03 at 11:33:00 UTC, Jason Wang wrote: > The ret variable used for returning value in the function > `meson_nfc_rw_cmd_prepare_and_execute` is never change after initialising. > Therefore, we can remove it safely and return 0 at the end of the function. > > Signed-off-by: Jason Wang Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel