Whamcloud - gitweb
LU-6215 libcfs: misc_unregister is now void function 75/16275/3
authorJames Simmons <uja.ornl@yahoo.com>
Thu, 10 Sep 2015 14:03:29 +0000 (10:03 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 15 Sep 2015 02:51:09 +0000 (02:51 +0000)
For the 4.2 kernel misc_unregister() no longer returns
an int value. This patch handles this API change.

Change-Id: If81519a2b272b39252bfd153d8b4b13ab4b3059b
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: http://review.whamcloud.com/16275
Reviewed-by: frank zago <fzago@cray.com>
Tested-by: Jenkins
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/libcfs/module.c

index 62793ea..d27a177 100644 (file)
@@ -387,9 +387,7 @@ static void exit_libcfs_module(void)
        cfs_crypto_unregister();
        cfs_wi_shutdown();
 
-       rc = misc_deregister(&libcfs_dev);
-       if (rc)
-               CERROR("misc_deregister error %d\n", rc);
+       misc_deregister(&libcfs_dev);
 
        cfs_cpu_fini();