diff options
author | Jinyang He <hejinyang@loongson.cn> | 2020-07-10 17:11:32 +0800 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2020-08-10 13:45:19 +0200 |
commit | 12e643a7dc65cc6d70f6d207867b6db943c6138b (patch) | |
tree | fd57c91e8a1858418f9ab92e00b9bcdc10de5544 /kexec/add_segment.c | |
parent | 7a576da125f14bc9b0c7fc4ecf41fd740f6f56b0 (diff) |
kexec-tools: Check callback first in kexec_iomem_for_each_line()
In the function kexec_iomem_for_each_line(), it is better to
check the callback first, it can return directly if the callback
is NULL.
Signed-off-by: Jinyang He <hejinyang@loongson.cn>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/add_segment.c')
0 files changed, 0 insertions, 0 deletions