Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx> wrote: > There is a confusing pattern in the kernel to use a variable named 'timeout' to > store the result of wait_event_timeout() causing patterns like: > > timeout = wait_event_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 'long' while here. > > Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx> > Acked-by: Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx> 4 patches applied to wireless-next.git, thanks. 158d5a1b3caa wifi: brcmfmac: use 'time_left' variable with wait_event_timeout() 0c0668813cc0 wifi: mwl8k: use 'time_left' variable with wait_for_completion_timeout() a37f6947ff07 wifi: p54: use 'time_left' variable with wait_for_completion_interruptible_timeout() a2ead3445a63 wifi: zd1211rw: use 'time_left' variable with wait_for_completion_timeout() -- https://patchwork.kernel.org/project/linux-wireless/patch/20240603091541.8367-3-wsa+renesas@xxxxxxxxxxxxxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches