[Ocfs2-tools-devel] [PATCH 1/2] debugfs.ocfs2: avoid dead code
chuanchang.jia at gmail.com
chuanchang.jia at gmail.com
Mon Sep 19 08:27:32 PDT 2011
debugfs.ocfs2/main.c: avoid dead code.
Signed-off-by: Alex Jia <chuanchang.jia at gmail.com>
---
debugfs.ocfs2/main.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/debugfs.ocfs2/main.c b/debugfs.ocfs2/main.c
index cab679f..097f170 100644
--- a/debugfs.ocfs2/main.c
+++ b/debugfs.ocfs2/main.c
@@ -525,8 +525,7 @@ int main(int argc, char **argv)
}
bail:
- if (cmd)
- fclose(cmd);
+ fclose(cmd);
if (opts.cmd_file)
free(opts.cmd_file);
if (opts.device)
--
1.7.1
More information about the Ocfs2-tools-devel
mailing list