[lvm-devel] master - cleanup: drop unneded assign
Zdenek Kabelac
zkabelac at fedoraproject.org
Mon Nov 9 09:28:49 UTC 2015
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c542c18d2af77f3114f22cf3d3845218285a5e62
Commit: c542c18d2af77f3114f22cf3d3845218285a5e62
Parent: 07046e994fc10882cac20d16666368a6de18a528
Author: Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate: Mon Nov 9 09:49:57 2015 +0100
Committer: Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Mon Nov 9 10:22:51 2015 +0100
cleanup: drop unneded assign
Coverity doesn't really like to see subcommand being assigned NULL,
so drop it.
---
tools/dmsetup.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index d6c0ad7..15bff64 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -6132,7 +6132,7 @@ int main(int argc, char **argv)
int ret = 1, r;
const char *dev_dir;
const struct command *cmd;
- const char *subcommand = NULL;
+ const char *subcommand;
int multiple_devices;
(void) setlocale(LC_ALL, "");
@@ -6228,7 +6228,7 @@ unknown:
subcommand = argv[0];
argc--, argv++;
} else
- subcommand = (char *) "";
+ subcommand = "";
if (_switches[COLS_ARG] && !_report_init(cmd, subcommand))
goto_out;
More information about the lvm-devel
mailing list