diff mbox series

[U-Boot] fs: ext4: Do not print mount fail message when not ext4 filesystem

Message ID 20180307232608.23859-1-marek.behun@nic.cz
State Accepted
Commit 51be47166319dfbf68828182cb57889bae4dc20b
Delegated to: Tom Rini
Headers show
Series [U-Boot] fs: ext4: Do not print mount fail message when not ext4 filesystem | expand

Commit Message

Marek BehĂșn March 7, 2018, 11:26 p.m. UTC
Other filesystem drivers don't do this.

Signed-off-by: Marek Behun <marek.behun@nic.cz>
---
 fs/ext4/ext4_common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Tom Rini March 9, 2018, 6:29 p.m. UTC | #1
On Thu, Mar 08, 2018 at 12:26:08AM +0100, Marek BehĂșn wrote:

> Other filesystem drivers don't do this.
> 
> Signed-off-by: Marek Behun <marek.behun@nic.cz>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c
index dac9545365..e3cc30a1e0 100644
--- a/fs/ext4/ext4_common.c
+++ b/fs/ext4/ext4_common.c
@@ -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;