diff options
| author | Grzegorz Kostka <kostka.grzegorz@gmail.com> | 2017-10-18 00:47:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-18 00:47:00 +0200 |
| commit | cc66c4021879f44ff267298c4a666ae8d78d9e43 (patch) | |
| tree | 3146833fd2755882b92c61213bb26ab232a129ae | |
| parent | d9ca5ea27b833522557cbcd2b382d01a14866c76 (diff) | |
| parent | ab4ed9a604bc6bc797dfa7e01e3612f1bc915bdd (diff) | |
Merge pull request #32 from enetor/useless-if
Remove an unuseful if check in ext4.c.
| -rw-r--r-- | src/ext4.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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; } } |
