From 1edfff7809cde3afce7f1d287545c31c9c0bb77a Mon Sep 17 00:00:00 2001 From: Pratyush Anand Date: Mon, 12 Sep 2016 12:40:03 +0530 Subject: [PATCH] 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 Acked-by: Dave Young --- kdumpctl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kdumpctl b/kdumpctl index a07a42b..019b23a 100755 --- a/kdumpctl +++ b/kdumpctl @@ -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