Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp391527rwd; Thu, 1 Jun 2023 01:30:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5s0l7oaWVU5kdbynhyUYVpOKBsjHJa/Nbaz4c/IEVHWREXTKLswStDTsuaRk6o2Pkz9zjc X-Received: by 2002:a17:90a:7409:b0:250:2311:1535 with SMTP id a9-20020a17090a740900b0025023111535mr7689607pjg.24.1685608220988; Thu, 01 Jun 2023 01:30:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685608220; cv=none; d=google.com; s=arc-20160816; b=T6U1XNswCyJUEtkbxXltu/JqwsghxRKmL5kaKPXbG9ufHlfHneZSut2lf9wQMBMN99 9A/XQP11Zvd7Z+7GkbtmFV+DCUgrrGFgQv3kU0+l+UcMHidh8IeERbYuWttPxYaQTLtq KjJowiJ/a8sJLRPqOR7MgPmiqZzkRhAf1bV+mDtyucZwXXBH1SZuN32IzmqSsw+PuChC fon9zHteYGVbQcgr9aBKdZc41YHIOWSQXMIzi1sI5pGZf8Z2kwAhu1oelAAxvNCiuGHE rwpJuhtUcI+LZ7K4Gg0MkNU8p69IWoweDqGDfM7t3tnvuMvXhRFk9WTAhaWATL0lPKHR 6f0Q== 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=S9nC4cTnKfkU9D8hTuobLWDfZok8GB2qMCFdsNJONl8=; b=k10QFe8etzOD6tN1OqZsTXDYFmUE2P5dNmg6p1Heu4uZNy4YMtTUE3h8oFquOcRPc4 Rio/QrOVdC2JKDMFB8WAcA5NxeqcrCLKph+Q7jSvl0CS2G9juFfeUYWJENXVwdea/Qkx ALfDCvtD35Ty8Gtg7Iw+Tzg+Ff1BeO/iDD0wlfvOqJ/B3PLpP1VwFsw6vyaZhaLwkwwq WpkxhW1EArOHi60gGbc9C7EHlIkj2YNzb5B9j9hD0kKn9aWlMfOu8TvRFzVNVzIBegAz T8XG4o4kCQgpRDXNZn7oGvd8jPnsq2I7SAyn+VYATNubbGumnmTwtdGCVcs5qp6skASI +h9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 28-20020a17090a195c00b00256620f78d6si674275pjh.189.2023.06.01.01.30.11; Thu, 01 Jun 2023 01:30:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231437AbjFAI0T (ORCPT + 64 others); Thu, 1 Jun 2023 04:26:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231378AbjFAI0Q (ORCPT ); Thu, 1 Jun 2023 04:26:16 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54430E7 for ; Thu, 1 Jun 2023 01:26:15 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q4ddE-0002tt-GT; Thu, 01 Jun 2023 10:26:04 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1q4ddC-004JKe-VT; Thu, 01 Jun 2023 10:26:02 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1q4ddB-00A5yW-Tw; Thu, 01 Jun 2023 10:26:01 +0200 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH net-next 1/4] ath10k: Drop cleaning of driver data from probe error path and remove Date: Thu, 1 Jun 2023 10:25:53 +0200 Message-Id: <20230601082556.2738446-2-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230601082556.2738446-1-u.kleine-koenig@pengutronix.de> References: <20230601082556.2738446-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Developer-Signature: v=1; a=openpgp-sha256; l=942; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=/b+eoSPz9HG2VPpR1UR16uVKTcTD7gKSXld+WjvDuk4=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBkeFYMjksFhfS3h1NyC7+gR5ba3ymfDLI1F5L1W gHLt4wuLt2JATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZHhWDAAKCRCPgPtYfRL+ TskTCAC7CWyAAZFHB8MYkQ+a5zOuyFeqHkD8VWZl7bDu3yq6x4OTYwLbvQnLT+r42HFnISJV69m xjJhmqV5zUGCSt9SUQKeNHfJFjUX1mK1q7i2jhKPD6Nk6n3Za+72WIB4tv5V8bVQEri5h37OffV OSt9rmwBRHSCAyClqqI0jiU6iZKzkIKyxkmew+rhrKepaIrhFvx3CoB9rk7sObsHF8IydpaM+J4 0OcEbDAPIvWahtN/xETDwsYYNK9xF3oSlCFpGxNM/9CuJDR770Nuvo8wvobCsAm3WkxZb02qUnX /0xx6DGSmkw/xM3wfEvl0OyC+ib8XuR0Y/ukEhc4PUB6SQ2F X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The driver core cares for resetting driver data if probe fails and after remove. So drop the explicit and duplicate cleanup in the driver's functions. Signed-off-by: Uwe Kleine-König --- drivers/net/wireless/ath/ath10k/ahb.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/ahb.c b/drivers/net/wireless/ath/ath10k/ahb.c index f0c615fa5614..7bb45c66cff7 100644 --- a/drivers/net/wireless/ath/ath10k/ahb.c +++ b/drivers/net/wireless/ath/ath10k/ahb.c @@ -816,7 +816,6 @@ static int ath10k_ahb_probe(struct platform_device *pdev) err_core_destroy: ath10k_core_destroy(ar); - platform_set_drvdata(pdev, NULL); return ret; } @@ -845,8 +844,6 @@ static int ath10k_ahb_remove(struct platform_device *pdev) ath10k_ahb_resource_deinit(ar); ath10k_core_destroy(ar); - platform_set_drvdata(pdev, NULL); - return 0; } -- 2.39.2