Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp329597lqr; Wed, 5 Jun 2024 07:21:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXdK/mmLziRKs754AG9ng3kJwKHwAqeWizOxCG25VIGA8R//PjzrLMUa8hA+m33RdaenYWmumKB16xVlLhF0cSeelB3MwZQKtxJghyxWQ== X-Google-Smtp-Source: AGHT+IGk0ThCDdqAhT2V39J8F4tEVEyY0mYrVIviTUz1OB+Wf8517oHEzlOTGZcYv3SvpNwKZMrF X-Received: by 2002:a17:90a:7e95:b0:2c1:e486:c9bb with SMTP id 98e67ed59e1d1-2c27db21f80mr2696166a91.21.1717597292249; Wed, 05 Jun 2024 07:21:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717597292; cv=pass; d=google.com; s=arc-20160816; b=i7ua5RoYOQfg5zU+9DYFijgrlZAP9Hvxh9SDGhrDENAW6xkj8q/ROypMDVEUL3AyHt vUSQ1n8LkUtBKliATS7d+p0LzIhuxghHfhSxj34HUpk0428295BKLT+ehX2C/RsDiD8G 5YGQ0AAWmQ49FNHSnUmE6axZtlUuJ52LjU3ZkTaW/XCUXUT8OfFSzom6e5rmpBnccRXD YN9aXldVh2W5IrazoO9SJt0LaasGykQ+PDCzwk78oGe2KlVUIf75xuvsAL8jzr+2PEfU 2QUbmO2UjpHAH/GRNpIPR4/tTe8nb1dNKwTkKThqeWf+PZzOqxjFUMgI6RwnZFoRYwZs cYEQ== ARC-Message-Signature: i=2; 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=Z/VKBXgfCH26c67JNDB3lt3JzZzUaWVE5acd/DpUovs=; fh=DVsfO8EoB6oi3hq0aoFbx1Le9X8lsywkIjhrRbBD5bs=; b=UFHVFhtmA23fPyysUwJmfRR+ElmqtQlN6joWueIZ92WwHSW4FxAOSc6muiLM5SYhxp JJlhME1xwinAlbQwIb6L6JLDkQ8ipZwxpx7V2Zo2t6W5T4lVuDQNlifFVuMF+1d3FpKq vpiRJr4kE364/wqt8eIIxTujDBdeVUvib9I0n/rb1i9r/UyPSbntKK3KekjBeSXZIYp8 GD3aWf0E0xhcAT2hHptpFoMgwoXw9bgSyU+u4EBRsM0K9+e5sDgyoyhmrM6jmeaBq130 nlMPT6CRJNi5I50Kk9O4qfY/A1TW325j6CeGjoQNJXy6msBbbRLSyHRPIDZJK+O8Bn2h IVFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c7y54Cxx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202662-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202662-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c28068012fsi1327137a91.110.2024.06.05.07.21.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 07:21:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202662-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c7y54Cxx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202662-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202662-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 DF618B30ED1 for ; Wed, 5 Jun 2024 13:30:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 391F9188CBD; Wed, 5 Jun 2024 12:54:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="c7y54Cxx" 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 5D4E01E89C; Wed, 5 Jun 2024 12:54:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717592072; cv=none; b=E2TeyxG2rDeMjf3w8lFXElkXbemlz8vZngIw8aII1Y2yewUp/VVurte6zzv9i6kD7szrMk3SONKHFJi/DA/GBnpk5Gi38qM8CHbYmDHxlPe6O7uMygFyMW1O7wpYZ19MhssU2lFjZlbMl1kejl9Esc31Cmk89tuT42D8JuGdnJk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717592072; c=relaxed/simple; bh=XB07QR+XSkJHYCaW2hwUoy4YszkpOcRuq7NZF7LreUM=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=kXBoowUXCBnLCmhgO6IRrgrvQ6U9wWTdmw1k5KfOFa4G2J43te9ZTOtCQPxG8bNezwac5aUugtIB0nbpFv1jEcWz+f3MZ5GeRsZM7s41bWcioRVmN4Z3OjU9PXNQVGqTSa/mo235sbG5eP87h7I7+m8GoiXTD9DlBPkHmztIdnI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=c7y54Cxx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E107CC32782; Wed, 5 Jun 2024 12:54:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717592071; bh=XB07QR+XSkJHYCaW2hwUoy4YszkpOcRuq7NZF7LreUM=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=c7y54Cxx1Xv0TlGIq5HUgQ2nYtyeWNVe/PtsNtglsSeAXuaKc3I3Nbo/BsduhjI/1 H0zvh1L+J2ykqqKN3pGGvIUYuAoBav2L6iNFrrLojJinF6swHPqHTCHL0yoCklSxwz VzwcKpya5PyhI3omNOazYBtnTxEqRw5F1CzzqAYALkLyvxU8InjCz9YgV3dhcYK8dN lu5Ce9UyH35QkftqwPw8wbOBtYkartYTtvb5/uOufL6m1IZM7lC8fZ+2b7TTL5nGOZ ycsmJdpoyx+8t64yngGCt5hQ9mo+OGDvKTTDaCIoXFyY/IwMnVnlnJTacMOIr6R7pe cK8sUSngASrgQ== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 3/6] wifi: mac80211: use 'time_left' variable with wait_for_completion_timeout() From: Kalle Valo In-Reply-To: <20240603091541.8367-4-wsa+renesas@sang-engineering.com> References: <20240603091541.8367-4-wsa+renesas@sang-engineering.com> To: Wolfram Sang Cc: linux-kernel@vger.kernel.org, Wolfram Sang , linux-wireless@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171759206880.1969597.15358870283165767535.kvalo@kernel.org> Date: Wed, 5 Jun 2024 12:54:30 +0000 (UTC) Wolfram Sang wrote: > There is a confusing pattern in the kernel to use a variable named 'timeout' to > store the result of wait_for_completion_timeout() causing patterns like: > > timeout = wait_for_completion_timeout(...) > if (!timeout) return -ETIMEDOUT; > > with all kinds of permutations. Use 'time_left' as a variable to make the code > self explaining. > > Signed-off-by: Wolfram Sang The title should be: wifi: mwl8k: use 'time_left' variable with wait_for_completion_timeout() I can fix that, no need to resend because of this. -- https://patchwork.kernel.org/project/linux-wireless/patch/20240603091541.8367-4-wsa+renesas@sang-engineering.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches