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 <behlendorf1@llnl.gov>
This commit is contained in:
Brian Behlendorf 2015-09-01 09:17:24 -07:00
parent a64e55752f
commit 4fa4cab972

View File

@ -638,11 +638,7 @@ splat_init(void)
static void __exit static void __exit
splat_fini(void) splat_fini(void)
{ {
int error; misc_deregister(&splat_misc);
error = misc_deregister(&splat_misc);
if (error)
printk(KERN_INFO "SPLAT: misc_deregister() failed %d\n", error);
SPLAT_SUBSYSTEM_FINI(linux); SPLAT_SUBSYSTEM_FINI(linux);
SPLAT_SUBSYSTEM_FINI(zlib); SPLAT_SUBSYSTEM_FINI(zlib);