aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorWolfram Sang <[email protected]>2024-04-30 13:41:40 +0200
committerMark Brown <[email protected]>2024-04-30 23:57:32 +0900
commit594aa75d6bdda85b5fd027a5056d8cd1345c1db3 (patch)
tree6ce763791bf3e508f246698041f62caa2b84eaca /lib/test_fortify/write_overflow-memcpy.c
parent83a3f1ba60d6e2f73c9dd2627a8ce41867dbc46b (diff)
spi: xlp: use 'time_left' variable with wait_for_completion_timeout()
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions