lib/igt_debugfs: Don't fail if debugfs is already mounted
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 11 Jun 2014 16:20:19 +0000 (19:20 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 13 Jun 2014 17:28:20 +0000 (20:28 +0300)
Remove the igt_assert() from the debugfs mount. It will fail if debugfs
is already mounted. With the assert in place it's very annying to use
igt without i915 loaded (eg. to dump BIOS configured registers).

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
lib/igt_debugfs.c

index f21f671..809d447 100644 (file)
@@ -102,7 +102,7 @@ static bool __igt_debugfs_init(igt_debugfs_t *debugfs)
 
        igt_assert(stat("/sys/kernel/debug", &st) == 0);
 
-       igt_assert(mount("debug", "/sys/kernel/debug", "debugfs", 0, 0) == 0);
+       mount("debug", "/sys/kernel/debug", "debugfs", 0, 0);
 
 find_minor:
        strcpy(debugfs->root, path);