kdumpctl: remove duplicate statement
Since we also check for mount point of $_target after if/else loop, so there is no need to do the same thing specifically in else loop as well. Remove those duplicate statement from else loop. Signed-off-by: Pratyush Anand <panand@redhat.com> Acked-by: Dave Young <dyoung@redhat.com>
This commit is contained in:
parent
1bb23e7536
commit
1edfff7809
4
kdumpctl
4
kdumpctl
@ -403,10 +403,6 @@ check_dump_fs_modified()
|
|||||||
_new_dev=$_target
|
_new_dev=$_target
|
||||||
else
|
else
|
||||||
_new_dev=$(kdump_get_persistent_dev $_target $_new_fstype)
|
_new_dev=$(kdump_get_persistent_dev $_target $_new_fstype)
|
||||||
if ! findmnt $_target >/dev/null; then
|
|
||||||
echo "Dump target $_target is probably not mounted."
|
|
||||||
return 2
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! findmnt $_target >/dev/null; then
|
if ! findmnt $_target >/dev/null; then
|
||||||
|
Loading…
Reference in New Issue
Block a user