fs: ext4: Do not print mount fail message when not ext4 filesystem

Other filesystem drivers don't do this.

Signed-off-by: Marek Behun <marek.behun@nic.cz>
This commit is contained in:
Marek Behún 2018-03-08 00:26:08 +01:00 committed by Tom Rini
parent b7d6e0abab
commit 51be471663
1 changed files with 2 additions and 1 deletions

View File

@ -2343,7 +2343,7 @@ int ext4fs_mount(unsigned part_length)
/* Make sure this is an ext2 filesystem. */
if (le16_to_cpu(data->sblock.magic) != EXT2_MAGIC)
goto fail;
goto fail_noerr;
if (le32_to_cpu(data->sblock.revision_level) == 0) {
@ -2379,6 +2379,7 @@ int ext4fs_mount(unsigned part_length)
return 1;
fail:
printf("Failed to mount ext2 filesystem...\n");
fail_noerr:
free(data);
ext4fs_root = NULL;