summaryrefslogtreecommitdiff
path: root/e2fsprogs
diff options
context:
space:
mode:
authorDenys Vlasenko2016-11-28 01:22:57 +0100
committerDenys Vlasenko2016-11-28 01:22:57 +0100
commit1d3a04a3a4be8682d4317251fc14e81ad655d58a (patch)
tree2ee72930778afa3a223327fec714c81d936f82dc /e2fsprogs
parent038a977d47c99c3e59d7a2393799b2afa838604c (diff)
downloadbusybox-1d3a04a3a4be8682d4317251fc14e81ad655d58a.zip
busybox-1d3a04a3a4be8682d4317251fc14e81ad655d58a.tar.gz
Code style fixes, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'e2fsprogs')
-rw-r--r--e2fsprogs/fsck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c
index 59514a1..6414988 100644
--- a/e2fsprogs/fsck.c
+++ b/e2fsprogs/fsck.c
@@ -658,7 +658,7 @@ static int device_already_active(char *device)
return (G.instance_list != NULL);
for (inst = G.instance_list; inst; inst = inst->next) {
- if (!inst->base_device || !strcmp(base, inst->base_device)) {
+ if (!inst->base_device || strcmp(base, inst->base_device) == 0) {
free(base);
return 1;
}