]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
setup: Don't write any mount errors over the GUI
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 23 Aug 2018 10:17:23 +0000 (11:17 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 23 Aug 2018 10:17:23 +0000 (11:17 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/installer/hw.c

index c9b95017d3ced051a52043ac6e83551a9348821a..8189aba18c08cfc72e93bed23fa6e7604c79085f 100644 (file)
@@ -146,14 +146,7 @@ int hw_mount(const char* source, const char* target, const char* fs, int flags)
                }
        }
 
                }
        }
 
-       int r = mount(source, target, fs, flags, NULL);
-
-       if (r) {
-               fprintf(stderr, "Error mounting %s to %s (fs = %s, flags = %d): %s\n",
-                               source, target, fs, flags, strerror(r));
-       }
-
-       return r;
+       return mount(source, target, fs, flags, NULL);
 }
 
 int hw_umount(const char* target) {
 }
 
 int hw_umount(const char* target) {