]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/block/cciss.c
cciss: fix proc warning on attempt to remove non-existant directory
[mv-sheeva.git] / drivers / block / cciss.c
index 2cc4dda462794a3b2f304b0590880237511505b6..2cdbc247d0ac92ca2765ea906174dcbc7bacb890 100644 (file)
@@ -4936,7 +4936,8 @@ static void __exit cciss_cleanup(void)
                }
        }
        kthread_stop(cciss_scan_thread);
-       remove_proc_entry("driver/cciss", NULL);
+       if (proc_cciss)
+               remove_proc_entry("driver/cciss", NULL);
        bus_unregister(&cciss_bus_type);
 }