knfsd: cache unregistration needn't return error
[firefly-linux-kernel-4.4.55.git] / fs / nfsd / export.c
index 66d0aeb32a47e5f4385e68c1947a8d8c1ab3a7e5..d29b70a28f2bc6e1854350ad467c50796c6fc83a 100644 (file)
@@ -1670,10 +1670,8 @@ nfsd_export_shutdown(void)
 
        exp_writelock();
 
-       if (cache_unregister(&svc_expkey_cache))
-               printk(KERN_ERR "nfsd: failed to unregister expkey cache\n");
-       if (cache_unregister(&svc_export_cache))
-               printk(KERN_ERR "nfsd: failed to unregister export cache\n");
+       cache_unregister(&svc_expkey_cache);
+       cache_unregister(&svc_export_cache);
        svcauth_unix_purge();
 
        exp_writeunlock();