From patchwork Tue Dec 5 07:54:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 1871863 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=mVzsy7ay; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=gm1 header.b=HkKYSk0V; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SktBF5V0Jz1yST for ; Tue, 5 Dec 2023 18:55:33 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=uC6wiKAXyPU6GeClasWZXXLstnFi/y1Gi/41jCPqTmM=; b=mVzsy7ayqIi74D 412i4ieIhSQk5WUo8hK6j2rP0kPsXI3kp/TPDuD2A9k6zdoVYOZaTYEcoNMSTK3jPOi5nsvDv2DoD iR1x/HSbAQQ5OswHncNpJp6oF3JD7gC3jDzR0OGNScO6PtWjcWEmSQ5tVwteWUVUx4MXV9WeOzOTS Fo4qqGgnA8ABA2HA9RF5xhTpE8pnbckjL8WCEMfYkLCKFPckcWZBAgTcU9vqW6jJ7NCJPGxHJqyJq 5goIMFW+IbnaMOBQf0/N953pdIcruqXgD+3td6L5RthcTCtyl1V8J1y+rsIj8cjmGE4t2nYzRGRvr xIPFnnccHnX0bLVsFzPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAQGR-006YSO-0B; Tue, 05 Dec 2023 07:54:43 +0000 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rAQGO-006YRG-20 for linux-mtd@lists.infradead.org; Tue, 05 Dec 2023 07:54:42 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 5DFCC24000D; Tue, 5 Dec 2023 07:54:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701762874; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Mveg92uhkODl4PAA/TPX11uevKTfHb0GzKwRpGWkKpI=; b=HkKYSk0VgqiiAeMAIrofjBQ4tOsRVwQWSrviTA6ddNdTW744BexGmZxRIKVb1QTBZMpMf1 HZgXAsQk8eW9Trs83PYt4enxIH6mukGCj6rUkSZipZwyoy/X6wWPZTm1m32AImLo+eZowA mtjjq1h7u89B2uZf85VfwVOhXicrI4DmCzEUexIf5akgBotT14mtwLYY3uxl6YVMiOdX0C L1BcIxO6hxLELNg5dcxfnQqdFILkkziT9ipHtgRgZRIsKG0q7M32DSyhtONwRcC8rjHCqE vwDesw2tt+t/GttK5JIFvVlP+lk6Kt/yA9KbvaFhwy4UqxjOzxCgzZekDfOeLg== From: Miquel Raynal To: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , Cc: Miquel Raynal Subject: [PATCH] mtd: ssfdc: Remove an unused variable Date: Tue, 5 Dec 2023 08:54:31 +0100 Message-Id: <20231205075431.13401-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-GND-Sasl: miquel.raynal@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231204_235440_793901_545EBE81 X-CRM114-Status: UNSURE ( 8.52 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Since its introduction the driver was declaring a "usecount" variable, but nobody ever used it upstream. This was spot while grepping for usecount through mtd/ for other reasons. Signed-off-by: Miquel Raynal --- drivers/mtd/ssfdc.c | 1 - 1 file changed, 1 deletion(-) Content analysis details: (-0.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [217.70.183.193 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [217.70.183.193 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Since its introduction the driver was declaring a "usecount" variable, but nobody ever used it upstream. This was spot while grepping for usecount through mtd/ for other reasons. Signed-off-by: Miquel Raynal --- drivers/mtd/ssfdc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/ssfdc.c b/drivers/mtd/ssfdc.c index 04da685c36be..211f279a33a9 100644 --- a/drivers/mtd/ssfdc.c +++ b/drivers/mtd/ssfdc.c @@ -18,7 +18,6 @@ struct ssfdcr_record { struct mtd_blktrans_dev mbd; - int usecount; unsigned char heads; unsigned char sectors; unsigned short cylinders;