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(a)redhat.com>
---
kdumpctl | 4 ----
1 file changed, 4 deletions(-)
diff --git a/kdumpctl b/kdumpctl
index 8d0ab81b983b..04bbe8d66f9a 100755
--- a/kdumpctl
+++ b/kdumpctl
@@ -402,10 +402,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
--
2.7.4