Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1487934rbb; Mon, 26 Feb 2024 10:46:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV8Vs8KKV9IXQRwqCpUAuwLnr9BifuxYPuY5jkkC5LOgkW5ZOSCwEe2vueEbLEIGlWNrd0EjdxaL2EA679XiM0JeY1DJtqEX9IShj8xag== X-Google-Smtp-Source: AGHT+IH/cw//UZfKbH0ekYtf6pWmsAJhK23a0NLJ2p6tPMACD+vEpt2gDXNyQBZ/gjtxB50w31AC X-Received: by 2002:a05:622a:13c7:b0:42e:821b:f23c with SMTP id p7-20020a05622a13c700b0042e821bf23cmr4804743qtk.8.1708973162407; Mon, 26 Feb 2024 10:46:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708973162; cv=pass; d=google.com; s=arc-20160816; b=IRgYBlrpVFHgo4dtVJIaPa+Mo4twexAaQdA9lBeZiWD9FOvg8ZqxIJnV1Y+ZOEgiui JJpFCTowbhZEoEo63EbVp+X9esBmCh6hfWtpzmMJr7kE7pdHjtd4pDITsbYPF00QNQSM EHolFE3XWqm6En3lSxlmMVW2hjHC5ANVRp9zjptffeEY6iJUvdGmc22lhpcuLpEqR1K+ lcgwnAXhTBg/+uiCSeTsrPUm2HuZ27R2qSE1UOi/J/RZ5tsciF+AwxtG3vNSkgESQQqn vDn6gZiVNARbsxBXDT8nN5FxE0W10B6p94zpq+Jb58ymKWCMH9GNWrd7sWTRSNMAcck7 josw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=pzgJ05ceTZ+mmQ/d1ecGYIdk3UARvMSpKghtJDV9fTM=; fh=H1n+MC6g7LKUTwELnEK0g4ZhJk1fR9LyVP/4n5c0PMs=; b=E1P86VRTljMkJQeZM8Xkbglu1nRiQ1RHh2RvI0bi08R1cZfriTJB4L+LQf7diHXz7w 2wmoZbZPEPms7gHR6Lb00BcZk2z0GDdwkenYcqfYEoVeFjDBQRVDCpc+OvuLL9CTo1Il vNZZMiUbSGkZKcHxAp8C6TXp1WBZWsLIsA18EeofA44zDBbQMRmxox3itiUYkxs/Ou9X qTmxfNn5Gmohtr5m9MPqX7kjyT/uAP0qvxzBbQVUf913alYRmGmJ4Mafp1HVUag3gxrc 4CgTlKoMtBRbDniyTPfGdPC9q0941p8CTTlwbrQjUwoNkTa2cSoyhCwoZIX8u2qx+aFv aQyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=SNk8oGBz; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-4023-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4023-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e22-20020a05622a111600b0042e82575d43si3215151qty.137.2024.02.26.10.46.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 10:46:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4023-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=SNk8oGBz; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-4023-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4023-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C68C21C25FBE for ; Mon, 26 Feb 2024 18:45:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F25912D77D; Mon, 26 Feb 2024 18:45:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="SNk8oGBz" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 E52E31292FF for ; Mon, 26 Feb 2024 18:45:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708973122; cv=none; b=RkpaGAFS/4+FF7/fU11EaYvH6PEYS6+bl04HxAr8WHyu4askgE2XEWaBBwN/9gazzuZvo8mIPUywaX/vYedR+//Ksc6o1ibWR6fcPKHJ5lrM0AebsOx5vTEz+X441qUyREUeB2XiXXfK/pGFYSkDg3m1TOSwJ12vW8R/o7iSFN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708973122; c=relaxed/simple; bh=Aa63NvrpwDJUZql0INXu5eLH4YRVoUzu9lk2cnpJtW4=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=hNb8NObdzAmaEZ6w9hxlyL+8LoNAfx0uYFYcPHsqTXd/vMiuwBta+XaUjyQ2sZ2Ndb+npSacSLZcaNLaCp1PRQyqoSgfLJWNIliwT4KrTSoMgZwJ0kKRcemVVAmCAvxX9lfXHvttLmRYwBgycacUGY9JVL58kVRQ4IYxDiAS06Y= 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=SNk8oGBz; arc=none smtp.client-ip=205.220.168.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 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41QF8LlO025416; Mon, 26 Feb 2024 18:45:12 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=pzgJ05ceTZ+mmQ/d1ecGYIdk3UARvMSpKghtJDV9fTM=; b=SN k8oGBzZSViyhj+k5xCzYCemJeIe8qeHKuDiLpML8A63ZYRJ1ARjhziOu2QSa6bLe XQ9evJSMD0AekCoT7Z7+3bZfYpwqXLaSPt4WCxdcAdtebnDp90WbuZUDh6ls4H1a pPM3o8Fw/v+9tVEJ7wm+cQ7FIAfym25HkwhbRcjYQJ73z7Nu1RTDCifK5l2l5bl9 98zW6rhurgFKgKmZBxt79U66YydOh0EtXC3+EoudJzMoq3xex963CDQzd1JfVkOA dmH/IxN3JFIzJoeYD7zVae0O3V6ITmmCa43g9N+KECWCqQHlBYPO9pIS/0xvF2xC uYeBYiVnIVsXaHZ81d1Q== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wgkxnht4t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Feb 2024 18:45:11 +0000 (GMT) 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 41QIjAGa012406 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Feb 2024 18:45:10 GMT Received: from [10.227.110.203] (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; Mon, 26 Feb 2024 10:45:10 -0800 Message-ID: <987c8f9d-ca21-41c6-b7f0-5c66a636ddfc@quicinc.com> Date: Mon, 26 Feb 2024 10:45:10 -0800 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/3] wifi: ath12k: Refactor error handler of Rxdma replenish Content-Language: en-US To: Karthikeyan Periyasamy , CC: References: <20240226162310.629162-1-quic_periyasa@quicinc.com> <20240226162310.629162-4-quic_periyasa@quicinc.com> From: Jeff Johnson In-Reply-To: <20240226162310.629162-4-quic_periyasa@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: MssdKHtk5_O4MDlNSZ-g48ZNqAeYWbJG X-Proofpoint-GUID: MssdKHtk5_O4MDlNSZ-g48ZNqAeYWbJG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-26_11,2024-02-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=642 mlxscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 clxscore=1015 bulkscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402260142 On 2/26/2024 8:23 AM, Karthikeyan Periyasamy wrote: > The Rxdma replenish handler currently contains redundant code in both the > success and error cases. To avoid the redundant code, implement a > conditional jump mechanism by placing a goto statement to prevent > unnecessary execution of the error handling code when the operation is > successful. This change streamline the code readability and enhance its > efficiency. > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Karthikeyan Periyasamy Acked-by: Jeff Johnson