Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6522014rdb; Fri, 15 Dec 2023 00:24:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgnIf/xcYSZ5FVBr3tcsjexeIVRyLBM/gntnthZfbonUxtcEMkKRhFwwq7Pt2fnzHJd6VT X-Received: by 2002:a05:6a20:158b:b0:16c:b5ce:50f with SMTP id h11-20020a056a20158b00b0016cb5ce050fmr5750163pzj.32.1702628694717; Fri, 15 Dec 2023 00:24:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702628694; cv=none; d=google.com; s=arc-20160816; b=nwpz2m0DWwb1r1W0/TwS6ZZCzlJO1/s0uLXFb9q8JT8flNOWKzN7qGBiYc1y15hZea zGmhhcyPHebYPDM//sBibS++Sp5CE0TPXj0TolMDU2qdIQ6LxHhBALa4NUDPVvD1oE6P 7SG7uY5pc7EogBWVERPMTMhQvRPcRKAeHG1f2iumIpS96PlrB84F2pEYfZgcc6RsgUeY cbQL+Jr8u2oKLiPpxVc7y6hPK4vKWP/rbjCaWiYJRSYSLvQMjL9hH/Z1V+Hb6tvZK2j7 w3fkFV9B48hLVx0ZqjjT+EGZBbI243wERa6HRvtOM/BUwoTsnU6rWDhux6u3OwEtKNl4 ipMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Sll+9qWsACg9WSZZSvDuRd5P7YLwP0CwcrFN2KVP0h4=; fh=nUgovVMFeIq5k4ayiYLxRqaefnyM09NXsCNy8IFqKqs=; b=qvi0abBrh+xOjfvFiP5B33LQiKcD0+lVF6iGiFdCi/G3RVfwv7HJihj05fmDOolHme 9AcrYTdEDUzZRPQsk4RF8IgY9iKAXBBjI/5t7Q6TZ/wL7sE88F0NBmWQEPRAN6HPBCqu f9m9qwJD81s2lBRu42ceKUsmFVg+Cp3hPpljyPUDMU7go5t+KLSKmlykiL4CJr7Bvpbz mr+NEdAwpVsk262G2pzkKOgOSXQ5ZTdI5e8H4Y6rvzW4iYZBJmjm1yXUrU7bEesEH20T DbcW4guj5VpQS5ZiaBOTeWc9SUY8OYbOyUFLOD+bNxD+l/8pdfRHJWLnxAXql9jBq1Pb J78g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IaXUyP1V; spf=pass (google.com: domain of linux-kernel+bounces-611-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d3-20020a170902cec300b001d389d998c7si377404plg.46.2023.12.15.00.24.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 00:24:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-611-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IaXUyP1V; spf=pass (google.com: domain of linux-kernel+bounces-611-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 EF29F283703 for ; Fri, 15 Dec 2023 08:24:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E28A12E54; Fri, 15 Dec 2023 08:24:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IaXUyP1V" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B9DB125CF for ; Fri, 15 Dec 2023 08:24:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-40c580ba223so4965635e9.3 for ; Fri, 15 Dec 2023 00:24:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702628684; x=1703233484; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Sll+9qWsACg9WSZZSvDuRd5P7YLwP0CwcrFN2KVP0h4=; b=IaXUyP1VA5H5nrsQ0pqyW5AZHt3CtTGXED6BWicfF79d10box3Z4bGwYRqxpbHq8Tf rkj1Q5p3xI+r18z3ARIj10kn+8xJa53SPHAQks9OoaFYw0d9Vs/XCndLxhTuLSNOpSBD zvkQBhsGqwYsbh8RRVVZohE/j9gQn4OSbyMh+tdpwBqoqCo1U8Xt1+awxmcIrOCk5Q8q jwVIooPiKPqKwH/HUUpXPJo18rsgJ5+TrFm3Qe2B37WB0oECwwuzVbq3l5/Gt9+mFDSr W+VZVi5EB+w5Br66uKHWUZEmlKrbcEeZINz/+ISFsxSrGoWkVWck8jeoXhJ35oXSoZFE PF4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702628684; x=1703233484; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Sll+9qWsACg9WSZZSvDuRd5P7YLwP0CwcrFN2KVP0h4=; b=thuy52iDkZ1cp8vBxuPRmJIINQIjQsDvK4x2K+unIv/FLBSVb2Vwb1UBu0iEywAwJj zQPhy8tPpDaJ7jFIvjB5AhzZ3r+BWxqNVzhzJvv73Zm03rKbzlWH3QyvHL8wGmx5NMqh Oj/hBRLXxyTmiBQHsAqSon+fP8gi7nspVHEicqqpapUrolRRSkiCCTTPKbl1ryDTE/CY HkYCYqSgGpML9hj9UxrR5PbgQgN1/oKtN/C1Kvgh6AuFJ9YR9NKUcr2R9QlWYdVK5zjg krSRlBGQ0lEMeLUyJj+rIhMK2eO1D6Xd0EtpM9cKWWxgjuDD5n7/tzo1BwpyilpszeV4 wUQg== X-Gm-Message-State: AOJu0YyQ1Y8r9TxfX7l2YTj5PXHs+USp+S1affiznKuP8sBDD+gWAtXz gSxBp2G6+VDdisFORJV6hA9i7Q== X-Received: by 2002:a05:600c:1e0a:b0:40c:6c79:2a43 with SMTP id ay10-20020a05600c1e0a00b0040c6c792a43mr159046wmb.108.1702628684547; Fri, 15 Dec 2023 00:24:44 -0800 (PST) Received: from [192.168.2.173] ([79.115.63.202]) by smtp.gmail.com with ESMTPSA id t9-20020a05600c198900b0040c490db950sm17872657wmq.47.2023.12.15.00.24.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Dec 2023 00:24:44 -0800 (PST) Message-ID: <120bf090-0c07-4971-a18a-a1b326f1b139@linaro.org> Date: Fri, 15 Dec 2023 10:24:42 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/4] mtd: spi-nor: drop superfluous debug prints Content-Language: en-US To: pratyush@kernel.org, michael@walle.cc, miquel.raynal@bootlin.com Cc: richard@nod.at, jaimeliao@mxic.com.tw, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org References: <20231215082138.16063-1-tudor.ambarus@linaro.org> <20231215082138.16063-5-tudor.ambarus@linaro.org> From: Tudor Ambarus In-Reply-To: <20231215082138.16063-5-tudor.ambarus@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I missed to drop some unused variables. Will drop them if everything else is fine. diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index a708c3448809..92c992eb73d5 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -3492,9 +3492,7 @@ int spi_nor_scan(struct spi_nor *nor, const char *name, { const struct flash_info *info; struct device *dev = nor->dev; - struct mtd_info *mtd = &nor->mtd; int ret; - int i; ret = spi_nor_check(nor); if (ret)