summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ext4.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ext4.c b/src/ext4.c
index 30d5bd8..b27ae6b 100644
--- a/src/ext4.c
+++ b/src/ext4.c
@@ -379,11 +379,9 @@ int ext4_mount(const char *dev_name, const char *mount_point,
return ENOTSUP;
for (size_t i = 0; i < CONFIG_EXT4_BLOCKDEVS_COUNT; ++i) {
- if (s_bdevices[i].name) {
- if (!strcmp(dev_name, s_bdevices[i].name)) {
- bd = s_bdevices[i].bd;
- break;
- }
+ if (!strcmp(dev_name, s_bdevices[i].name)) {
+ bd = s_bdevices[i].bd;
+ break;
}
}