Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53926274 authored by Mark Haverkamp's avatar Mark Haverkamp Committed by James Bottomley
Browse files

[SCSI] aacraid: Fix extra unregister_chrdev



Received from Mark Salyzyn

If there are no aacraid controllers, we do not create the raid
controller chrdev, thus when the driver is unloaded it performs a
superfluous deregistration.

Signed-off-by: default avatarMark Haverkamp <markh@osdl.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 95433bad
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1023,6 +1023,7 @@ static int __init aac_init(void)

static void __exit aac_exit(void)
{
	if (aac_cfg_major > -1)
		unregister_chrdev(aac_cfg_major, "aac");
	pci_unregister_driver(&aac_pci_driver);
}