Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp159162rdb; Mon, 18 Sep 2023 10:57:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHKd972q1eBjZYSo63ibWSokXp33q2/Hg4rdXg1uMTfjkDeay8QGDeP8kDalsBgZl+umplC X-Received: by 2002:a17:902:ea10:b0:1bc:224a:45c2 with SMTP id s16-20020a170902ea1000b001bc224a45c2mr470215plg.15.1695059843271; Mon, 18 Sep 2023 10:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695059843; cv=none; d=google.com; s=arc-20160816; b=bLMZyZSFQzOTAuV7k+sFKg8qRprwEnRXdvRtLqCyC9xxBwqEGvZJz9AdxBi0iQZEo5 kH2Vdj7HxdqKxs7JdzhsQ5xHPSsfJD6REOVu8SpEI6Ykrh9MPtgki7VkClWkC4vlKj0v ZffX1BYGNWWVOhlyuuq1HPDYTIxbC6Ioxyb/hQl6TnhHcCtxfbkUJFFyjv1kgDURvYde aGuu2DsACtPHgX2a+C55pzUL3LW6r2h2t1p5kUjr9N1Gn6lOsL79fVX/RrKCXhs/D2mc 8EwoRXDKu2Ohq8UPo8gUoofjWYisTtBTdY1FqzQu6qVpgRKlD8ddRyWxrMiASH27Bn+5 Vsjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=2gO14l1xKoVYsqpLXHQY+TH3q7tRh/iL93iJiBS050w=; fh=wz3pTpqDVaKfzpZUPVA9Sfjg+FadVfoDbJM6izomyKk=; b=tgsETxX8rzRtoL5mjMyfqrMX4SCDWwPQm8tKKTnRJ2FwJQYOqxvbFT9bZPiCqcOAbQ GopCrW0UwpLI9x3IMbKWdU8S+Fn12ypKXy5QoA8HkUmZxBRcl+YO2u0/xGu6lg0n4EQC JstqT9AD/QMJASZ7Cv7NdYIc3c6KLG1QakKzcIzpRG1KFbiNN7nBELrvS1OrOYKfwSCp Mcrk4QmK8YASmff8N5DcQRUwrZ52403SxWjKIdFiH0l1VScaL7PsMQ2CoxKmsvvZmUJ3 ogV+2VPCrXstzF8Oh17QmVWBJW2mpPOPYt74oYvOLWqsyhgFq5gOumQesuj46sQ34UQi zqZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BJmM0vcq; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d12-20020a170903230c00b001c3b2d40b32si8895853plh.400.2023.09.18.10.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 10:57:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BJmM0vcq; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8CA4180D6A1E; Mon, 18 Sep 2023 10:02:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231245AbjIRRCi (ORCPT + 57 others); Mon, 18 Sep 2023 13:02:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbjIRRCh (ORCPT ); Mon, 18 Sep 2023 13:02:37 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E67491 for ; Mon, 18 Sep 2023 10:02:32 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1102DC32786; Mon, 18 Sep 2023 14:31:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695047508; bh=JB3bqQ+BxH47O2jLd20Yozgn+VaCyFGHxhd3pn1nTZw=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=BJmM0vcqnDui8iEM6rSPz2hSyxSHmWu0IqFb5abQGlpOMTLtcsZkx1UYP+rJyEr6P X9UwJhZGRSxAIclClIRoc76M9amHkFjcQhNV4uUnLXayZhrJuI8UJVpA1UvyTjzPSA 0wB9sh7CP6+ZfjUXd/4TV1VrJ8nvMf++XaZHa6Yj94qk7ucOKdjrzU+FeC3qcKlxgG KE0Ge0EaP5KZAxuRX/AACyOZ+E2WpGE2yihU0lgo+FnW6bsao+jTaY61azlBOvEAYo 6KeOQZkGq3UGc+3m/NtC2D9jYBx/bKyij5RcDXX9bp1qn7SrMeuUqae+ouLLFwqIb7 flCI6jO5hdqsA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [net-next] wifi: wlcore: Convert to platform remove callback returning void From: Kalle Valo In-Reply-To: <20230912171249.755901-1-u.kleine-koenig@pengutronix.de> References: <20230912171249.755901-1-u.kleine-koenig@pengutronix.de> To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Cc: 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: <169504750617.740666.8864088781140392316.kvalo@kernel.org> Date: Mon, 18 Sep 2023 14:31:47 +0000 (UTC) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 18 Sep 2023 10:02:46 -0700 (PDT) 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 (mostly) ignored > 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. > > wlcore_remove() returned zero unconditionally. With that converted to > return void instead, the wl12xx and wl18xx driver can be converted to > .remove_new trivially. > > Signed-off-by: Uwe Kleine-König Patch applied to wireless-next.git, thanks. f00928012886 wifi: wlcore: Convert to platform remove callback returning void -- https://patchwork.kernel.org/project/linux-wireless/patch/20230912171249.755901-1-u.kleine-koenig@pengutronix.de/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches