Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1144949rdb; Fri, 1 Dec 2023 08:06:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IEcHs8zkCTxzYr92bF3UtbGKrwLcRDfw1gxx/oqja6b5/U0ANQTTL4h2h8yGq1es4OC7+2w X-Received: by 2002:a05:620a:38c6:b0:77d:ce82:3ce2 with SMTP id qq6-20020a05620a38c600b0077dce823ce2mr7998706qkn.32.1701446813652; Fri, 01 Dec 2023 08:06:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701446813; cv=none; d=google.com; s=arc-20160816; b=bWs0yqPaxhJWZmGnDm7dA0/r0vhDacs8ZkFc7ym6YUAVg3jlDrittFmn21VYaagFUA Yn82jTfY9NfcWSsESD0XpxxNxFay37zhzLjNGnjo8++aqspChwgpJOJL6u0irXgXhEbu LKF83KRupGHo+jMUGV/N1BQ6nn3UnRWOlSHYNlKlzlLzU61Ebx7JNzzFIhWa8x5zT70X hbBtPLTkuqfxVeJl6EH1TLixqMCSalp1iKXNsruRZ50vuvWBqPEqNbDiHKNRUpW+s8K9 BAZlCwx/gIprYi4aVjfqb5EoqXyqlmJd4035/ZT0BAlQfryjfEBNbPWe5g3gvs5YNNN/ S+4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=n+IDBhTDSpxpqPwxCJzaxpbpCODedaqXTbbzUE36TVw=; fh=r558EtO/eSQAW/PJhhRa3fhuzhD3ThgH/2kuim8Bit8=; b=jvFfcOrRE/O8xB1qtmAqIMNGFsfb9LqOTIlW4GRz8ASyped7AAiKX2hY65hXFCydKh Mm0d88fIfFFcT9hCBZnYoo3lpFxSS+8lyG3ss778JNVHiWg4QSqy08EUehuD0rBPEcfz VEfTePPooOMBah5kknYQ/oKMm8hUObMth50lhZdkJmztnY6SDegRUsmjZvPlBIL063xZ sOVMGVVC/lc+B01Xn2jcxYgO3Z9iboRwDRiO+46hA0P6VGsfEJ0GvB5KLcNuhpk9DDhJ PKr9IVm/o3smbmZFoJrnq1Vxw/WrbYGRqrK9xfuH+K1pyTitwHygq3+YjAnL/biqIjiQ awPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s5NNSwTx; spf=pass (google.com: domain of linux-wireless+bounces-303-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-303-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y3-20020a05620a44c300b0077d95de9dd4si3745974qkp.144.2023.12.01.08.06.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 08:06:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-303-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s5NNSwTx; spf=pass (google.com: domain of linux-wireless+bounces-303-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-303-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 35FC11C20A80 for ; Fri, 1 Dec 2023 16:06:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F27D4BA8C; Fri, 1 Dec 2023 16:06:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="s5NNSwTx" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2FC984BA85 for ; Fri, 1 Dec 2023 16:06:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FC67C433C8; Fri, 1 Dec 2023 16:06:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701446809; bh=V60OBAVdP05ZqICoOO8Mq9RmBiuJ+VOy+KYCJ7A4KzQ=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=s5NNSwTxawpDkFx2TtNYPNTKv+QKWlKOlWuZH9xr0WzTCCEu1VVEsJJqk8z4EyPK/ 5M0PwGjYn1dNTVOEmuPQMoRquKdkJlRGvje+R5vlfgLFtKJ/eHbZ8debnmpO1eJw4I rzjanSeAm5rryMNlW5yf7AFwPDYjtj0CBMaUGRUu859wC4DDF2vqMnJuHUMIaWaoQe KN287t6DE3DPGvtAl9epRRJfShFisl7F6BZxanlDP9JqYDaAyZS2QGrRdpzjvrIoj5 exKrlb7m9YPc8l/x2MdF1SM8GbsTf1JMeLWXWyRFE9fGnVre2g9WCyklj9PmghfLRn LuisceKNVE1lw== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH wifi-next 2/6] wifi: ath5k: Convert to platform remove callback returning void From: Kalle Valo In-Reply-To: <20231117093056.873834-10-u.kleine-koenig@pengutronix.de> References: <20231117093056.873834-10-u.kleine-koenig@pengutronix.de> To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Cc: Jiri Slaby , Nick Kossifidis , Luis Chamberlain , linux-wireless@vger.kernel.org, kernel@pengutronix.de User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170144680660.2201420.10875151176323453923.kvalo@kernel.org> Date: Fri, 1 Dec 2023 16:06:48 +0000 (UTC) Uwe Kleine-König wrote: > The .remove() callback for a platform driver returns an int which makes > many driver authors wrongly assume it's possible to do error handling by > returning an error code. However the value returned is ignored (apart > from emitting a warning) and this typically results in resource leaks. > > To improve here there is a quest to make the remove callback return > void. In the first step of this quest all drivers are converted to > .remove_new(), which already returns void. Eventually after all drivers > are converted, .remove_new() will be renamed to .remove(). > > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. > > Signed-off-by: Uwe Kleine-König > Reviewed-by: Jeff Johnson > Signed-off-by: Kalle Valo 2 patches applied to ath-next branch of ath.git, thanks. b5418d170b7c wifi: ath5k: Convert to platform remove callback returning void 8cc18a70913f wifi: wcn36xx: Convert to platform remove callback returning void -- https://patchwork.kernel.org/project/linux-wireless/patch/20231117093056.873834-10-u.kleine-koenig@pengutronix.de/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches