Skip to content

Commit

Permalink
Linux 4.2 compat: misc_deregister()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
behlendorf committed Sep 1, 2015
1 parent a64e557 commit 4fa4cab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions module/splat/splat-ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4fa4cab

Please sign in to comment.