From patchwork Fri Feb 21 13:02:16 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zijun Hu X-Patchwork-Id: 13985452 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 156C7210198; Fri, 21 Feb 2025 13:05:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740143141; cv=none; b=HEJXSf1JpanVYNqa7x2n0JJ9G6+l/aYExjCMJ4DZ849welqlgZGUyOL7HkoTIGDOA36iwweBtS5xr5Hhegtkf5NOnODFoW/d9YsNSJAFA7Ko1ronpeQR+dOhoq8vOBSKLeNcurzFoAWfFDjRhwg2q3PBM4Gr8ByLrqCY1HvysGY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740143141; c=relaxed/simple; bh=uWAi+BTJ3Z+ObPtlikE34mhaDWracqe9WHqkFI+pZ0s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=IDcGm5lT5H8cpcM/QNrOTToJnjm92kXMKfReVOMJvk5Y1lkqS2XHHtNoEo1ElgAE/mK5a6Ob3TYJVYSpTVUSmQHDYQVFmHQ5cOsFyKQ0T9JkOrJP01BmS0K15gAsPz/m9eFgP9nm6/5PEQXecKxopwZFEWGILAe5eZxI/BQlUoU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=lm/KJ//8; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="lm/KJ//8" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 51LCd9sH031600; Fri, 21 Feb 2025 13:02:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= aGZAK3USWEp/zqIBPpVz///TBEqXJmIWZeBjSblQKNk=; b=lm/KJ//8nMgWQXAS o/MtygHv8i8vC5F4AZgtv6kh1k76mNbQXVbxBN2IYndzWY6Ejri+hkjLpH7P2O32 pvaTiZ4XCdrlh8lEYop7MFg26lDPGJ4Fp9aTtrDujXW13JeyBIarwXwV6Q0PLVrB 9Tl22erEGyvVKss0BgO9J2lx/1cTJ8IFqxkLz8FjGCMTf8SsxFaiTZofNoK1E0+F YZZ0ywqUSAqiRowjrp/Kr/rOAnFlBgH+X7W/ZD6hPaMWaaO71Nxwny3AlxQALsjJ IOy9RHmoosDz/g2Pt8lOPnDvKAxp3WQpTQhnOq+RydZHbvmbxIHiDSWb6f1IcqP2 p+nkHQ== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44vyy5hyht-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Feb 2025 13:02:44 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 51LD2cAA015787 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Feb 2025 13:02:38 GMT Received: from hu-zijuhu-lv.qualcomm.com (10.49.16.6) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 21 Feb 2025 05:02:37 -0800 From: Zijun Hu Date: Fri, 21 Feb 2025 05:02:16 -0800 Subject: [PATCH *-next 11/18] ratelimit: Remove needless return in void API ratelimit_default_init() Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20250221-rmv_return-v1-11-cc8dff275827@quicinc.com> References: <20250221-rmv_return-v1-0-cc8dff275827@quicinc.com> In-Reply-To: <20250221-rmv_return-v1-0-cc8dff275827@quicinc.com> To: Greg Kroah-Hartman , Will Deacon , Aneesh Kumar K.V , Andrew Morton , Nick Piggin , Peter Zijlstra , Arnd Bergmann , Thomas Gleixner , Herbert Xu , "David S. Miller" , Greg Kroah-Hartman , "Rafael J. Wysocki" , "Danilo Krummrich" , Eric Dumazet , "Jakub Kicinski" , Paolo Abeni , Simon Horman , Johannes Berg , "Jamal Hadi Salim" , Cong Wang , Jiri Pirko , Jason Gunthorpe , Leon Romanovsky , Linus Walleij , "Bartosz Golaszewski" , Lee Jones , Thomas Graf , Christoph Hellwig , Marek Szyprowski , Robin Murphy , "Miquel Raynal" , Richard Weinberger , Vignesh Raghavendra CC: Zijun Hu , , , , , , , , , , , , Zijun Hu X-Mailer: b4 0.14.1 X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: AjROQ6ARzwNQfpSfNlaKrQpc9dFLEzZd X-Proofpoint-GUID: AjROQ6ARzwNQfpSfNlaKrQpc9dFLEzZd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-21_04,2025-02-20_02,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxlogscore=780 spamscore=0 bulkscore=0 clxscore=1015 suspectscore=0 adultscore=0 malwarescore=0 mlxscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2502100000 definitions=main-2502210096 Remove needless 'return' in void API ratelimit_default_init() since both the API and ratelimit_state_init() are void functions. Signed-off-by: Zijun Hu --- include/linux/ratelimit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/ratelimit.h b/include/linux/ratelimit.h index b17e0cd0a30c..5308cdf43056 100644 --- a/include/linux/ratelimit.h +++ b/include/linux/ratelimit.h @@ -18,8 +18,8 @@ static inline void ratelimit_state_init(struct ratelimit_state *rs, static inline void ratelimit_default_init(struct ratelimit_state *rs) { - return ratelimit_state_init(rs, DEFAULT_RATELIMIT_INTERVAL, - DEFAULT_RATELIMIT_BURST); + ratelimit_state_init(rs, DEFAULT_RATELIMIT_INTERVAL, + DEFAULT_RATELIMIT_BURST); } static inline void ratelimit_state_exit(struct ratelimit_state *rs)