diff options
| author | Zhen Lei <[email protected]> | 2022-09-30 01:54:46 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2022-10-18 13:50:31 +0000 |
| commit | 53910ef7ba04fbf1ea74037fa997d3aa1ae3e0bd (patch) | |
| tree | 95a741ee486552bf096664579ab06073cf337853 /lib/debugobjects.c | |
| parent | Merge tag 'livepatching-for-6.1' of git://git.kernel.org/pub/scm/linux/kernel... (diff) | |
| download | kernel-53910ef7ba04fbf1ea74037fa997d3aa1ae3e0bd.tar.gz kernel-53910ef7ba04fbf1ea74037fa997d3aa1ae3e0bd.zip | |
livepatch: Move the result-invariant calculation out of the loop
The calculation results of the variables 'func_addr' and 'func_size' are
not affected by the for loop and do not change due to the changes of
entries[i]. The performance can be improved by moving it outside the loop.
No functional change.
Signed-off-by: Zhen Lei <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
