Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp744727rdb; Fri, 17 Nov 2023 11:19:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IErUYfcXD+/hH9XcEOK34MtWHp4YgIlODS0zbQ7J1oqMRU8zZkoX/9YTyyyG5yYs//pnxJK X-Received: by 2002:a17:902:efd3:b0:1ce:6589:d1b5 with SMTP id ja19-20020a170902efd300b001ce6589d1b5mr539187plb.42.1700248780478; Fri, 17 Nov 2023 11:19:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700248780; cv=none; d=google.com; s=arc-20160816; b=DTuRrmArtCwYMqWuFgGOoEMd174wsHfHxNUjtjxRgV2C76jwoleBv+zxE5RVLCwr3F Fhi2yAV6W9A6EhAWMEo1XXniGleGYYZqhO00yTeOOb3B2+FjaG0tBtQ1jJnAeKoPxc89 4pH+7wC3Lg9sW38XsHSSap15VEbqRnr+uYivZL7sGcu7aR/Vj4jcgE9yc1Za1SnhZ8s8 X2V1Uy109eShU8XaRROId3o86KT3S/azdltSowEdXEaf1LYd33Lzfir7Je/M2SJHCJWo simnXS/4xnrFRBSdq99L1utKFa36tI5r0fVfJ8juZBTc6pO9GlGdgotDb+n1f/euE5YW yBBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=4W0MKDKrofwikFVd/6UzeW6NiPLTlboCA4xJWzavkmE=; fh=6WHr1COFXZReyooJavtBkxiSCk7jN5hpAtSekqF2FCA=; b=dDl5f3REWD7/wAxItN2zSU1ui7seav8XoGnKVS+4QsKvZErgUddSrS49Xn2O6UbK9q it+DzrduCDfYJowI60PfoxVGjWgmYkeb8uX1/amIdPx8DQP/z+Rkhn1Ys/m3scWkFoHY ww9IDEQyv3QdaVSISPQTEYmgp3cwAQIVWiTYwmFM6rDNZ5MParLOYO1KGIn1JaKiowQh 3kid/uu8LUVs4/WaGSUwQncZ3dVAxtWWLMvTJJNagKVhX68s9gEiB9yCEapXKApOO0TC che6n7qOd1B2zTZa+aJrEX/3WRpplnuozolhoUpmSR/WDJlgU1K8BQauan1sFNrPVSG9 HVsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Lwwc/rrm"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id i17-20020a170902c95100b001c3da86939csi2456826pla.546.2023.11.17.11.19.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 11:19:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Lwwc/rrm"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E22B3822B8D1; Fri, 17 Nov 2023 11:19:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231712AbjKQTTh (ORCPT + 53 others); Fri, 17 Nov 2023 14:19:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjKQTTg (ORCPT ); Fri, 17 Nov 2023 14:19:36 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E13CFD4F for ; Fri, 17 Nov 2023 11:19:31 -0800 (PST) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AHIb02w017927; Fri, 17 Nov 2023 19:19:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=4W0MKDKrofwikFVd/6UzeW6NiPLTlboCA4xJWzavkmE=; b=Lwwc/rrmeurxd1sQfmxEpQIdm7XJGJ/SwYwMWj7n0+FLtKlxBNaqGxSfSERrj3NKtUG0 hRC/0I/VO8hdzeqb+vyv87sdE7igCfWKva2xYj3NK0pqQpjkQq0pP3sVwMg7vK/fMp1o Iit9EwgfCveSlli1D38IEGck4H2oj66m14BWlOcu0ZMI66odFCZhKNZf5Qyh7U1bY/R2 xfSD9AIYQMNS9uLQZ/+hBYEfaizHSnkFIe3oxGKP5p/GDkgPMa5Dr4VVMC6IlN0j7NLf XlDEgMmPfe1H7iqxvUpvva8RbM40SpdAcKPl1RzeEhs4kSiyvSZjngJJwGeE+yA86a0H Yw== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ue7pqgwma-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 19:19:25 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AHJJOjk028078 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 19:19:24 GMT Received: from [10.110.1.143] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 17 Nov 2023 11:19:23 -0800 Message-ID: <2f86981d-c266-4c68-beb2-197bbe1813af@quicinc.com> Date: Fri, 17 Nov 2023 11:19:23 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH wifi-next 3/6] wifi: ath9k: Convert to platform remove callback returning void Content-Language: en-US To: =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Kalle Valo CC: =?UTF-8?Q?Toke_H=C3=B8iland-J=C3=B8rgensen?= , , References: <20231117093056.873834-8-u.kleine-koenig@pengutronix.de> <20231117093056.873834-11-u.kleine-koenig@pengutronix.de> From: Jeff Johnson In-Reply-To: <20231117093056.873834-11-u.kleine-koenig@pengutronix.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: zfL3SfO1RLTqN668GxQaQpzYTU31J5Br X-Proofpoint-GUID: zfL3SfO1RLTqN668GxQaQpzYTU31J5Br X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-17_18,2023-11-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 phishscore=0 adultscore=0 suspectscore=0 spamscore=0 mlxlogscore=976 lowpriorityscore=0 priorityscore=1501 bulkscore=0 malwarescore=0 impostorscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311170146 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 17 Nov 2023 11:19:36 -0800 (PST) On 11/17/2023 1:31 AM, 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