]> granicus.if.org Git - zfs/commitdiff
Be careful to never use any of the debug infrastructure either
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Tue, 22 Apr 2008 22:22:02 +0000 (22:22 +0000)
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Tue, 22 Apr 2008 22:22:02 +0000 (22:22 +0000)
before the debug subsystem is fully set up, or after the debug
subsystem has been torn down.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@86 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

modules/spl/spl-generic.c

index 3729a785984fc45a51f725c13b21f775336f6f36..be244cd7a598268a96728b197d5cd4ea83900690 100644 (file)
@@ -90,10 +90,9 @@ set_hostid(void)
 static int __init spl_init(void)
 {
        int rc = 0;
-       ENTRY;
 
        if ((rc = debug_init()))
-               RETURN(rc);
+               return rc;
 
        if ((rc = kmem_init()))
                GOTO(out , rc);
@@ -120,7 +119,7 @@ out:
 
        printk("SPL: Failed to Load Solaris Porting Layer v%s, "
               "rc = %d\n", VERSION, rc);
-       RETURN(rc);
+       return rc;
 }
 
 static void spl_fini(void)
@@ -132,8 +131,6 @@ static void spl_fini(void)
        vn_fini();
        kmem_fini();
        debug_fini();
-
-       EXIT;
 }
 
 module_init(spl_init);