summaryrefslogtreecommitdiffstats
path: root/scripts/mkuboot.sh
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2025-01-03 16:30:41 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2025-01-10 23:01:22 +0900
commit2480f53f21b21eb24a33815d4623f54fdb30cf27 (patch)
tree7fbbc164786ec2577b9098ed7eab31cfd0d7adb1 /scripts/mkuboot.sh
parentf034d186bf9e2857079815e5490e2810a1a287a6 (diff)
downloadlinux-2480f53f21b21eb24a33815d4623f54fdb30cf27.tar.gz
linux-2480f53f21b21eb24a33815d4623f54fdb30cf27.tar.bz2
linux-2480f53f21b21eb24a33815d4623f54fdb30cf27.zip
genksyms: refactor the return points in the for-loop in __add_symbol()
free_list() must be called before returning from this for-loop. Swap 'break' and the combination of free_list() and 'return'. This reduces the code and minimizes the risk of introducing memory leaks in future changes. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/mkuboot.sh')
0 files changed, 0 insertions, 0 deletions