aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorTom Rix <[email protected]>2021-05-15 11:09:41 -0700
committerJaegeuk Kim <[email protected]>2021-05-26 07:00:35 -0700
commit4f55dc2a988b304d3595887f1161151d1c3b1f33 (patch)
tree467887f973b525c913b85f6bd986bbb5a6306c82 /scripts/gdb/linux/tasks.py
parent91f0fb6903ed30370135381f10c02a10c7872cdc (diff)
f2fs: return success if there is no work to do
Static analysis reports this problem file.c:3206:2: warning: Undefined or garbage value returned to caller return err; ^~~~~~~~~~ err is only set if there is some work to do. Because the loop returns immediately on an error, if all the work was done, a 0 would be returned. Instead of checking the unlikely case that there was no work to do, change the return of err to 0. Signed-off-by: Tom Rix <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions