From: Brian Behlendorf Date: Tue, 1 Sep 2015 16:17:24 +0000 (-0700) Subject: Linux 4.2 compat: misc_deregister() X-Git-Tag: zfs-0.8.0-rc1~152^2~155 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fa4cab972899ecf6266c23986159a109dbcac5b;p=zfs Linux 4.2 compat: misc_deregister() The misc_deregister() function was changed to a void return type. Rather than add compatibility code to detect this change simply ignore the return code on all kernels. It was only used to log an informational error message of no real value. Signed-off-by: Brian Behlendorf --- diff --git a/module/splat/splat-ctl.c b/module/splat/splat-ctl.c index 4b9bcb3f0..4d4148d42 100644 --- a/module/splat/splat-ctl.c +++ b/module/splat/splat-ctl.c @@ -638,11 +638,7 @@ splat_init(void) static void __exit splat_fini(void) { - int error; - - error = misc_deregister(&splat_misc); - if (error) - printk(KERN_INFO "SPLAT: misc_deregister() failed %d\n", error); + misc_deregister(&splat_misc); SPLAT_SUBSYSTEM_FINI(linux); SPLAT_SUBSYSTEM_FINI(zlib);