Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp744500rdb; Fri, 17 Nov 2023 11:19:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6OYeBSVxsN2tT8VcWSMBy1gTllScG2A5KU5cw7oDfn6zBJNpNGmoOEcScBGg4AYDpyBcC X-Received: by 2002:a05:6a20:3d87:b0:187:6f8c:796f with SMTP id s7-20020a056a203d8700b001876f8c796fmr108485pzi.18.1700248752495; Fri, 17 Nov 2023 11:19:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700248752; cv=none; d=google.com; s=arc-20160816; b=vsIfwCeKi2CbyJDEpt0wr/rB5gb7zshUIzAYMUKgTPQVjqoIkLhL6wlkYCNfy41CBc Uq3wHnZcllF3QqgdpEJAe6pTuqqQMzmmeonUIusvrGTunRATVM1g3RRf6dYInwdfAZbr CR8EH2DWBaqQU7zbS4VH2zr769HhKecTYEyhw8w7QDs1N/SSVxOnUp0rVjukBjGKcopw lSk62jK406NVyL84XWLGOtitxL5Q80j1tYUkIyrztNVNoL9ub5yaGzAsdNiMRBSAlZ59 A05EoKVuZWSEVJIEoqwrmuTs+CMstYySDKhNd13fGlfyvJwHYUq8CgFzm2aMd7+J5KOC Nf3Q== 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=wnBfp2Ijkep8+ERmkigYzeJ9ABU2wJA2LO0oZiswBtY=; fh=1MUdvSFgISnveq6F5HWGF2wcFxqFEHjQeoa1rzjJ8iI=; b=BOGsYDetiWsnLYDMuC2Tbr8thBOCNU+vZiBzA7Bzwl+lMFCNPBy/ozmkg0EmvnAS/F VPMkQroViiO3i5WwpMWESz5MnLFai2hf/R9lK2eEfrL8U46nx2AxKQzZ/ym34RvBMC1b xAFUwJ9U9px+zE6b5Wxch1QJcdXq89d5whLrNyRz/W6+qYb95i+YzElOv3oAIr/ArghD W2IxQR8WfYtBlSFmV0Atv/cEaLB5Rf+0v858Bq3PWVW2UezJHN20jX9cDqsU36nSBsG/ bYCj0OrJHACGoHsuhbLz16XFkjjW+LDXGge3y2QHMlqTiFnp5mJvhKuwz+mtECCu0lHA qFFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MvER67DX; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bm22-20020a656e96000000b005bdd9ef451bsi2559003pgb.874.2023.11.17.11.19.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 11:19:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MvER67DX; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 86FBD8258CB9; Fri, 17 Nov 2023 11:19:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231392AbjKQTTM (ORCPT + 53 others); Fri, 17 Nov 2023 14:19:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjKQTTM (ORCPT ); Fri, 17 Nov 2023 14:19:12 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D64AED4D for ; Fri, 17 Nov 2023 11:19:08 -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 3AHEo3VT007997; Fri, 17 Nov 2023 19:19:02 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=wnBfp2Ijkep8+ERmkigYzeJ9ABU2wJA2LO0oZiswBtY=; b=MvER67DXI8+F+dZDc1LG/3Ut193D5NsGHqvC4KJkYqyqrGoZy9356CG9l/ewpgaiognA MlCnxwOzjrQXoMjSM423+/Zxpd4yNCwl7WKPdSFgsO8qxJGIoqRMcEMVb9m+UCkGThSD 6a75rCVuLxxfLBNuwKPv9Nq8DB060oG2858ugbo0+mF8d72yhYqllfpp0BX+lXiaMwv4 k8FVT/fockAthvsadp/kJItFDWdrY+YmCGDEiYPRk+AK3bcrpXivYNVmjEF7oiFsLYT+ sgF+4atdzlTJjD50sm9sPb/PW4dLlp1WyLmQYzn0vRbL3vMJrhZWhCvhblD3rAdUUaoZ RQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ue7pqgwkj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 19:19:01 +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 3AHJJ0xT027537 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 19:19:00 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:00 -0800 Message-ID: <55cdf7d4-599b-498e-9f9e-5187bdd00b00@quicinc.com> Date: Fri, 17 Nov 2023 11:18:59 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH wifi-next 2/6] wifi: ath5k: Convert to platform remove callback returning void Content-Language: en-US To: =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Kalle Valo CC: Jiri Slaby , Nick Kossifidis , Luis Chamberlain , , References: <20231117093056.873834-8-u.kleine-koenig@pengutronix.de> <20231117093056.873834-10-u.kleine-koenig@pengutronix.de> From: Jeff Johnson In-Reply-To: <20231117093056.873834-10-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: 2yNUZ9LNT7VGzmllnhPtsAuavQRepxV_ X-Proofpoint-GUID: 2yNUZ9LNT7VGzmllnhPtsAuavQRepxV_ 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=930 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 11:19:11 -0800 (PST) On 11/17/2023 1:30 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