diff --git a/fs/ext2.c b/fs/ext2.c
index ac0757e..aad1384 100644
--- a/fs/ext2.c
+++ b/fs/ext2.c
@@ -548,17 +548,14 @@ grub_ext2_mount (grub_disk_t disk)
 
   /* Make sure this is an ext2 filesystem.  */
   if (grub_le_to_cpu16 (data->sblock.magic) != EXT2_MAGIC)
-    {
-      grub_error (GRUB_ERR_BAD_FS, "not an ext2 filesystem");
-      goto fail;
-    }
+    goto fail;
   
   /* Check the FS doesn't have feature bits enabled that we don't support. */
   if (grub_le_to_cpu32 (data->sblock.feature_incompat)
         & ~(EXT2_DRIVER_SUPPORTED_INCOMPAT | EXT2_DRIVER_IGNORED_INCOMPAT))
     {
       grub_error (GRUB_ERR_BAD_FS, "filesystem has unsupported incompatible features");
-      goto fail;
+      goto fail_1;
     }
     
   
@@ -576,7 +573,10 @@ grub_ext2_mount (grub_disk_t disk)
   
   return data;
 
- fail:
+fail:
+  grub_error (GRUB_ERR_BAD_FS, "not an ext2 filesystem");
+ 
+fail_1:
   grub_free (data);
   return 0;
 }
