kdumpctl: remove kdump_get_conf_val in save_raw

With the introduction of ${OPT[fstype]} this call to kdump_get_conf_val
can be removed now as well.

Signed-off-by: Philipp Rudo <prudo@redhat.com>
Reviewed-by: Tao Liu <ltao@redhat.com>
Reviewed-by: Coiby Xu <coxu@redhat.com>
This commit is contained in:
Philipp Rudo 2022-03-25 15:47:10 +01:00 committed by Coiby Xu
parent 5118daf2ff
commit ac5968218f

View File

@ -819,8 +819,9 @@ save_raw()
{ {
local raw_target local raw_target
raw_target=$(kdump_get_conf_val raw) [[ ${OPT[_fstype]} == raw ]] || return 0
[[ -z $raw_target ]] && return 0
raw_target=${OPT[_target]}
[[ -b $raw_target ]] || { [[ -b $raw_target ]] || {
derror "raw partition $raw_target not found" derror "raw partition $raw_target not found"
return 1 return 1