From patchwork Mon Apr 1 12:44:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 13612781 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 794B8CD1288 for ; Mon, 1 Apr 2024 13:51:10 +0000 (UTC) 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=etSIGFuX/kfgc5GssPv1WVV93bp8bVgLe5sszPTK5c8=; b=rFpEh2glDYc/Do NeOXN4xd0EN+1tAYWCPaL3wRxchEPfu9uEuZzJEtM8798VZwheWeqUM9TLUmq7uQr9V0bV8cLI2yk O+CPAo09SSbqo0vyfHhtKTULD5UhN1Zy9XnVgj0OdF19596Bg+el4BfegIbv2OKsBBc+OtnabDXL+ TBZEVuU7/9As4AxhmRAl+6I9AmKFKNPIF/rG8EzrCz/wj8YNn1PTM1Pmr3Cu/tdDAxEUXHFa2y05C DDpwzyNw4nRaMZ9hHiiE5AyDAE4zCuK5CSI1XDkj78OT5wy1WPDbAcWK1wNhL7wM/YGudg4WlPjZh uczoRDMGVJTucStLoCsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rrI3u-00000007xVp-0cq7; Mon, 01 Apr 2024 13:50:58 +0000 Received: from msa-217.smtpout.orange.fr ([193.252.23.217] helo=msa.smtpout.orange.fr) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rrH1p-00000007nx2-3hmc for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2024 12:44:48 +0000 Received: from fedora.home ([86.243.17.157]) by smtp.orange.fr with ESMTPA id rH1hrOZwdvgJFrH1hr3sW9; Mon, 01 Apr 2024 14:44:38 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1711975478; bh=Yu8leq0vscV/4JPRiTZKtnUrj46s9nQc5F/iD/konlQ=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=Ew3UVoD10l//SFm8GppZswThlk91Da+AnocbMuCrrpiOB4IbAQy7631GwO2+eWUpi QEFyHRTXcwWPucTNej7HHJ5WTTvVgNw8iseGVfrMjDganGtAXIWo4mRrJISskoGuVi YahysPiPR2io4eQrAZkoXnwS9gK22rEho2F/FuBwQ25cY9z5q344Hc1CTfLaZIFks+ wiO1LfGA5vnhguf8evdWE8xM/C2Xo9VMh4CQJ4O1kJPu0ypJFSZDIx+elRsWmiL8Gr xgZ+OmoQqm2Dd93N+g7HSA9K8xDx1fI3ZKZs3sjFhBzuSvmgDgXZBPWaZ2BvFAlBTD setNZnc7nev1Q== X-ME-Helo: fedora.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Mon, 01 Apr 2024 14:44:38 +0200 X-ME-IP: 86.243.17.157 From: Christophe JAILLET To: Patrice Chotard , Damien Le Moal , Niklas Cassel Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-arm-kernel@lists.infradead.org, linux-ide@vger.kernel.org Subject: [PATCH] ata: ahci_st: Remove an unused field in struct st_ahci_drv_data Date: Mon, 1 Apr 2024 14:44:29 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240401_054446_108928_0F1E1F21 X-CRM114-Status: UNSURE ( 8.91 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In "struct st_ahci_drv_data", the 'ahci' field is unused. Remove it. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET --- Apparently, it has never be used. It is not a left-over from a refactoring. Compile tested only. --- drivers/ata/ahci_st.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c index d4a626f87963..79a8b0aa37bf 100644 --- a/drivers/ata/ahci_st.c +++ b/drivers/ata/ahci_st.c @@ -30,7 +30,6 @@ #define ST_AHCI_OOBR_CIMAX_SHIFT 0 struct st_ahci_drv_data { - struct platform_device *ahci; struct reset_control *pwr; struct reset_control *sw_rst; struct reset_control *pwr_rst;