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>
Acked-by: Ismael Luceno <ismael@iodev.co.uk>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| solo6x10-core.c | ||
| solo6x10-disp.c | ||
| solo6x10-eeprom.c | ||
| solo6x10-enc.c | ||
| solo6x10-g723.c | ||
| solo6x10-gpio.c | ||
| solo6x10-i2c.c | ||
| solo6x10-jpeg.h | ||
| solo6x10-offsets.h | ||
| solo6x10-p2m.c | ||
| solo6x10-regs.h | ||
| solo6x10-tw28.c | ||
| solo6x10-tw28.h | ||
| solo6x10-v4l2-enc.c | ||
| solo6x10-v4l2.c | ||
| solo6x10.h | ||