From ab2a180545986bfebbdbef320cab75be1603f856 Mon Sep 17 00:00:00 2001 From: James Simmons Date: Thu, 10 Sep 2015 10:03:29 -0400 Subject: [PATCH 1/1] LU-6215 libcfs: misc_unregister is now void function 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 Reviewed-on: http://review.whamcloud.com/16275 Reviewed-by: frank zago Tested-by: Jenkins Reviewed-by: Oleg Drokin --- libcfs/libcfs/module.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libcfs/libcfs/module.c b/libcfs/libcfs/module.c index 62793ea..d27a177 100644 --- a/libcfs/libcfs/module.c +++ b/libcfs/libcfs/module.c @@ -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(); -- 1.8.3.1