Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp67916rdb; Sun, 14 Jan 2024 07:01:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IG4LwP6VMh7n3sujxV7jwrRhvPXBSgpB41EcGIgCqFeag2KGZsimcyK5IIn9vpiH9qr6oO3 X-Received: by 2002:a05:6830:6b8f:b0:6dd:ee8f:73f1 with SMTP id dd15-20020a0568306b8f00b006ddee8f73f1mr4608781otb.3.1705244472599; Sun, 14 Jan 2024 07:01:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705244472; cv=none; d=google.com; s=arc-20160816; b=vhJ6QBBVMDESCm0wPdZGIQ0MzU3FbRXWQgEuikHnpw+IAyQB0ADTYCQZvHusjhjcWD Bjf+F1x9bAUHvmkWtPlrX7zZmjsbdEjm5yn0HN9TWF9dkISxvVFwLpGVDiCQCJBy3AOv CB0tPWYRV3v28nLOfF/i6oL5kNP9Kwq6znVPAepSnws1wNr5g2WEWL/9OtKu9r8N/J2Y hTNZeVKqw+sGATXxYpWa/Oyl552VidA5GsP5+kzyaej2KYSgoWGvB2Dx0pW4BmHGozV+ 6/9vQZcJhGnucqwfa8J9QtCcvQX/IYu16cAK0CkDGxm73s2Zs4hhcJSpU0ho4PaTZMnI eeFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=8tAqmWO+9ZTznLFOpIl1KeZde35dWnY+hXs1P0a7oB0=; fh=u/x6E1ik9Iry12gxBAnmBS3GBWA6M82WLDgOoe2GHnM=; b=p+3lJvtBdyv/a0LY3rLb1QQpbSg9NrWuIP0iW4/04OoE21Ut3s7jNP/m9f/aJ2Q6xz hl703iIEk22f72lfjqQagXIn2kgfDqMCzzzCjAsh5ZKxeq2QBhNXg975M5EnJipRePoR 1Mqw7P36ZIHBSp9fWBKUm98OXV0X8c0DILLfBS+lTvY7eRzQRA6WFtd9M3RBi8v57QXs jUFw9M7AHbMbeTqChsjhjRaaa4BRRop76RDkFNtgB+66hww5gsQ+NHJy0CBFA4OQNLW5 YG8k7X6FwYWSY/0kFxygWdsZZoACtiJB/1F+4NARUgePvJW7vJcE0Ux1Dk3HCfJ5oM/1 EXDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xe4D1PxZ; spf=pass (google.com: domain of linux-wireless+bounces-1889-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1889-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m64-20020a625843000000b006db7051845esi2051268pfb.42.2024.01.14.07.01.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jan 2024 07:01:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1889-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xe4D1PxZ; spf=pass (google.com: domain of linux-wireless+bounces-1889-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1889-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4EC89B210C2 for ; Sun, 14 Jan 2024 15:01:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3637A23C6; Sun, 14 Jan 2024 15:01:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Xe4D1PxZ" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 182087E; Sun, 14 Jan 2024 15:01:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A519C433C7; Sun, 14 Jan 2024 15:01:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705244462; bh=aRieRp79l/B2y5vjKinEX+iYJeaHanzDnbFW5Ls4f7c=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=Xe4D1PxZsT3269QVH2gTyELMT7aGAoEsaGU8YG8fdfFBHVPNNrrblvLV2MoCokdqg D1XUnCNMRzsvgdXhvczZx/35lGmUOQbtCs5U2zb5aZv2rtpQbmphTUJSCz/KbjQNNx 5+ZwukFf9axgEUtA7mZGYogLkaZivYrVUAn8xXRQ0ZGLRipyvAcZIAt/DPeGYaieiS xQQeiLfA0iTewi5iApesC35R+hUr0rQ8z6INWobFL8LtOR09iA0vZkUqIcozYVohLY fihuo/wsCduIvBOj8oULK6w18TCjfyQVU6BIevIBXgZyL5KZHqrdNJnQTifROaLFIC y632ne2aIyD7A== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2 1/3] wifi: ath12k: Remove unnecessary struct qmi_txn initializers From: Kalle Valo In-Reply-To: <20240111-qmi-cleanup-v2-1-53343af953d5@quicinc.com> References: <20240111-qmi-cleanup-v2-1-53343af953d5@quicinc.com> To: Jeff Johnson Cc: Jeff Johnson , , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170524445957.1421352.9255954399937351219.kvalo@kernel.org> Date: Sun, 14 Jan 2024 15:01:01 +0000 (UTC) Jeff Johnson wrote: > Currently most of the ath12k QMI messaging functions define their > struct qmi_txn variables with a {} initializer. However, all of these > functions subsequently call qmi_txn_init(), and the very first thing > that function does is zero the struct. Hence, the initializers are > unnecessary. Since these consume code space and cpu cycles, remove > them. > > No functional changes, compile tested only. > > Signed-off-by: Jeff Johnson > Signed-off-by: Kalle Valo 3 patches applied to ath-next branch of ath.git, thanks. 59cf57ab3dee wifi: ath12k: Remove unnecessary struct qmi_txn initializers 2e82b5f09a97 wifi: ath12k: Add missing qmi_txn_cancel() calls 6d2b0a066941 wifi: ath12k: Use initializers for QMI message buffers -- https://patchwork.kernel.org/project/linux-wireless/patch/20240111-qmi-cleanup-v2-1-53343af953d5@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches