Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2737546rdb; Tue, 12 Sep 2023 10:27:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQPHpTWrL7ayavens0UMZrAI3VefnWsu0g29/tDOWhbrZqbVGGmX99bH8LIJZfdfZExY9d X-Received: by 2002:a17:90b:90b:b0:273:efde:2ea4 with SMTP id bo11-20020a17090b090b00b00273efde2ea4mr8332505pjb.42.1694539667798; Tue, 12 Sep 2023 10:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694539667; cv=none; d=google.com; s=arc-20160816; b=J+T38dyIC8WNy2qkte1sTC68yly6G1oZV4R96wTFuMTZEaMlvLtEtiLzJUpmjRyTxC LYOTT2DyDMDZnNDFVWEA1Kc2D1HR6uH1mPUGsI+UB8aiH/gA+QbPo4U3D0UwVQ4KPDBO 0e8y1XLMARbp3hSRCg2g5RF7HWiVlEf6QvGrcuCSpX72O9GrXQ2bBISpOvGvzXGlZ5M2 z4ii9K10Pvfl27NVhePNNeD1DCJWCM0u80laWxzttrfMXgBYuDYWqZGCwi8FwW8eMcu4 lfd70N9A0p8XnITyQSb6bvoAfuIYys8c/C4mIICXHA2vM1b+l9NFNGfQAFSomSz+GxHE UaUw== 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 :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=zIKLtZjNVgBP73NHp/nW1hBf6Wivvh2Gs6KDV3/s+ps=; fh=9O7tjbZYqG4OKdiMJ33x0K8j6rxl7kp9riGrYafATy0=; b=uCeTLz/GQ+1RcUju7vsx0j/poh9rhY8zE3OYt36Kwl6Qa3fQB4E3KmuGUt3EcpJb5u rxMhC/X03LvVP2cNhBEY2An41aDmBj7YLfRrcWsCx5RcJH/zhqOA1Qp+MG8OqYxxpiAG Ne5NLB93gjDpY6gN62oh9olyqVkXMwu1OMuhYlxLx6LIkivRGcfgEIg24I73OUzR4Zwn xGhCTbT8sqUIxrHP6q5UBqwtSQKQkxsUfpYk/rhGDQXuuKe4CPoO28Y14gQnhAbhUJot LeXAYUFu2m4w2ar8qm1B6MaU8MOyGydIvJJgHFi5pzvPdhr1avv/hgMK96VCzzmNbUk1 Z1sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NKHNb2ll; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id f5-20020a17090ace0500b002635643286fsi10153414pju.133.2023.09.12.10.27.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 10:27:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NKHNb2ll; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id DD1C0819AD88; Tue, 12 Sep 2023 10:23:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236979AbjILRX1 (ORCPT + 56 others); Tue, 12 Sep 2023 13:23:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233220AbjILRXZ (ORCPT ); Tue, 12 Sep 2023 13:23:25 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10B3610D9 for ; Tue, 12 Sep 2023 10:23:22 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E186CC433C7; Tue, 12 Sep 2023 17:23:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694539401; bh=G1we36iGe4CkE77od0JjjgAzmx37GrnqdGoAlnxSogI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=NKHNb2llGzM8Ee6aHjVa5dQWPVjZJO+2DtsIwhim41WoAwOnMpeS1mmVS4GVAWowm H3zCAAXXyzkrhcIQTMlnmpaFxT6knrCJE3PzMm76nbqQopf9dOLNMTJ2cMevqwM28r R8BfOaSt9iDyQkTiprd4aNA88knZceS/6t4dvt0amYBL8qw0mwfgUeLw7uASRY/cbi SnriFJ9VMKa2Rs5Pd8dVgfatk4isTjbgS47ZAF8RUst29l/CF+r+A8sr/FOVzrSzeC NJL4jP8yGRac1VcQUgzFlstQi46AiINqFRooXMKA1sZ/e8QNbMTueRPUXEhQ638Ju2 a/XyMzs9p+n3g== From: Kalle Valo To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Cc: linux-wireless@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH net-next] wifi: ti/wlcore: Convert to platform remove callback returning void References: <20230912171249.755901-1-u.kleine-koenig@pengutronix.de> Date: Tue, 12 Sep 2023 20:23:18 +0300 In-Reply-To: <20230912171249.755901-1-u.kleine-koenig@pengutronix.de> ("Uwe =?utf-8?Q?Kleine-K=C3=B6nig=22's?= message of "Tue, 12 Sep 2023 19:12:49 +0200") Message-ID: <87sf7jcnll.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 (agentk.vger.email [0.0.0.0]); Tue, 12 Sep 2023 10:23:24 -0700 (PDT) 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 agentk.vger.email Uwe Kleine-K=C3=B6nig writes: > 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=C3=B6nig > --- > drivers/net/wireless/ti/wl12xx/main.c | 6 +++--- > drivers/net/wireless/ti/wl18xx/main.c | 2 +- > drivers/net/wireless/ti/wlcore/main.c | 6 ++---- > drivers/net/wireless/ti/wlcore/wlcore.h | 2 +- > 4 files changed, 7 insertions(+), 9 deletions(-) wireless patches go to wireless-next, not net-next. But no need to resend because of this. --=20 https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes