aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorWolfram Sang <[email protected]>2024-06-04 23:29:21 +0200
committerMiquel Raynal <[email protected]>2024-07-17 10:39:38 +0200
commite33df1c488d6e2b58064355651adb51901137036 (patch)
tree8500026554f1e734e4636bd23222a70ccca5caff /lib/test_fortify/write_overflow-strncpy-src.c
parentbf66d81975d4240b46659ea2392fe65d83527140 (diff)
mtd: rawnand: intel: 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]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions