diff --git a/module/zfs/zfs_ioctl.c b/module/zfs/zfs_ioctl.c index ba695ddbeb..61bc4b82b1 100644 --- a/module/zfs/zfs_ioctl.c +++ b/module/zfs/zfs_ioctl.c @@ -6028,13 +6028,9 @@ zfs_attach(void) static void zfs_detach(void) { - int error; zfsdev_state_t *zs, *zsprev = NULL; - error = misc_deregister(&zfs_misc); - if (error != 0) - printk(KERN_INFO "ZFS: misc_deregister() failed %d\n", error); - + misc_deregister(&zfs_misc); mutex_destroy(&zfsdev_state_lock); for (zs = zfsdev_state_list; zs != NULL; zs = zs->zs_next) { diff --git a/module/zpios/pios.c b/module/zpios/pios.c index 8e5077da51..e3a85c1686 100644 --- a/module/zpios/pios.c +++ b/module/zpios/pios.c @@ -1310,11 +1310,7 @@ zpios_init(void) static void __exit zpios_fini(void) { - int error; - - error = misc_deregister(&zpios_misc); - if (error) - printk(KERN_INFO "ZPIOS: misc_deregister() failed %d\n", error); + misc_deregister(&zpios_misc); printk(KERN_INFO "ZPIOS: Unloaded module v%s-%s%s\n", ZFS_META_VERSION, ZFS_META_RELEASE, ZFS_DEBUG_STR);