kcov: no need to check return value of debugfs_create functions
[linux-2.6-microblaze.git] / kernel / kcov.c
index c2277db..5b0bb28 100644 (file)
@@ -444,10 +444,8 @@ static int __init kcov_init(void)
         * there is no need to protect it against removal races. The
         * use of debugfs_create_file_unsafe() is actually safe here.
         */
-       if (!debugfs_create_file_unsafe("kcov", 0600, NULL, NULL, &kcov_fops)) {
-               pr_err("failed to create kcov in debugfs\n");
-               return -ENOMEM;
-       }
+       debugfs_create_file_unsafe("kcov", 0600, NULL, NULL, &kcov_fops);
+
        return 0;
 }