fix assorted unused code and wrong format specs found by cppchekc (bug 6716)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2013-11-29 16:43:33 +01:00
parent 1a7256ac38
commit 9b2a9f0210
20 changed files with 25 additions and 39 deletions

View File

@ -117,7 +117,7 @@ void parse_journal_opts(char **journal_device, int *journal_flags,
}
if (strcmp(token, "device") == 0) {
*journal_device = blkid_get_devname(NULL, arg, NULL);
if (!journal_device) {
if (!*journal_device) {
journal_usage++;
continue;
}