[Debian-ha-commits] [ocfs2-tools] 29/58: mkfs.ocfs2: clean up deadcode in is_cluster_info_valid()
Valentin Vidic
vvidic-guest at moszumanska.debian.org
Tue Jun 20 13:40:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
vvidic-guest pushed a commit to branch upstream
in repository ocfs2-tools.
commit 74c7c11058c51b1a01965fbd9c7d5f61c83e79ef
Author: Jun Piao <piaojun at huawei.com>
Date: Fri Sep 30 16:14:37 2016 +0800
mkfs.ocfs2: clean up deadcode in is_cluster_info_valid()
Execution cannot reach this statement as NULL-checker has tested
all of 'stack_name', 'cluster_name', 'globalhb' before.
Signed-off-by: Jun Piao <piaojun at huawei.com>
Reviewed-by: Joseph Qi <joseph.qi at huawei.com>
---
mkfs.ocfs2/mkfs.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/mkfs.ocfs2/mkfs.c b/mkfs.ocfs2/mkfs.c
index 0997d5b..18dff97 100644
--- a/mkfs.ocfs2/mkfs.c
+++ b/mkfs.ocfs2/mkfs.c
@@ -176,7 +176,6 @@ static int is_cluster_info_valid(State *s, char *stack_name,
"the specified cluster attribute");
return 0;
}
- return 1;
}
if (!stack_name || !strlen(stack_name)) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/ocfs2-tools.git
More information about the Debian-HA-Commits
mailing list