commit | 12e643a7dc65cc6d70f6d207867b6db943c6138b | [log] [tgz] |
---|---|---|
author | Jinyang He <hejinyang@loongson.cn> | Fri Jul 10 17:11:32 2020 +0800 |
committer | Simon Horman <horms@verge.net.au> | Mon Aug 10 13:45:19 2020 +0200 |
tree | fd57c91e8a1858418f9ab92e00b9bcdc10de5544 | |
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>