From: Takashi Iwai <tiwai@suse•de>
To: Wolfram Sang <wsa+renesas@sang-engineering•com>
Cc: alsa-devel@alsa-project•org, Takashi Iwai <tiwai@suse•com>,
linux-sound@vger•kernel.org, Jaroslav Kysela <perex@perex•cz>,
Johannes Berg <johannes@sipsolutions•net>,
linuxppc-dev@lists•ozlabs.org
Subject: Re: [PATCH 1/1] ALSA: aoa: soundbus: i2sbus: pcm: use 'time_left' variable with wait_for_completion_timeout()
Date: Wed, 01 May 2024 09:56:43 +0200 [thread overview]
Message-ID: <87le4ukls4.wl-tiwai@suse.de> (raw)
In-Reply-To: <20240430121028.30443-1-wsa+renesas@sang-engineering.com>
On Tue, 30 Apr 2024 14:10:27 +0200,
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.
>
> Fix to the proper variable type 'unsigned long' while here.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering•com>
Thanks, applied now to for-next branch.
Takashi
prev parent reply other threads:[~2024-05-01 7:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-30 12:10 [PATCH 1/1] ALSA: aoa: soundbus: i2sbus: pcm: use 'time_left' variable with wait_for_completion_timeout() Wolfram Sang
2024-05-01 7:56 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87le4ukls4.wl-tiwai@suse.de \
--to=tiwai@suse$(echo .)de \
--cc=alsa-devel@alsa-project$(echo .)org \
--cc=johannes@sipsolutions$(echo .)net \
--cc=linux-sound@vger$(echo .)kernel.org \
--cc=linuxppc-dev@lists$(echo .)ozlabs.org \
--cc=perex@perex$(echo .)cz \
--cc=tiwai@suse$(echo .)com \
--cc=wsa+renesas@sang-engineering$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox