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:
Pratyush Anand 2016-09-12 12:40:03 +05:30 committed by Dave Young
parent 1bb23e7536
commit 1edfff7809
1 changed files with 0 additions and 4 deletions

View File

@ -403,10 +403,6 @@ check_dump_fs_modified()
_new_dev=$_target
else
_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
if ! findmnt $_target >/dev/null; then