]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/arm/komeda: don't use confusing 'timeout' variable name
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 7 May 2024 09:02:01 +0000 (11:02 +0200)
committerLiviu Dudau <liviu.dudau@arm.com>
Thu, 9 May 2024 23:41:09 +0000 (00:41 +0100)
commited325ac38e0c0e371f128db0978357453a0c362c
tree58f11eafee10315d61e13c5bd702cbf27eb912f8
parent6597efcfc53585d5fb177b901a41b4ac2f282b99
drm/arm/komeda: don't use confusing 'timeout' variable name

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. Check the return value directly to drop
'timeout'  which also fixes its wrong type.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240507090200.7936-2-wsa+renesas@sang-engineering.com
[changed commit title to match driver name]
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/display/komeda/komeda_crtc.c