[SCSI] aacraid: Fix extra unregister_chrdev
authorMark Haverkamp <markh@osdl.org>
Mon, 27 Mar 2006 17:44:19 +0000 (09:44 -0800)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Thu, 13 Apr 2006 15:13:19 +0000 (10:13 -0500)
commit53926274f24e5c852dbe8f89dea16b7822549472
treed468b352dfc8f148a8303e7a0206b8d48df640f8
parent95433badf0ff8dbc2caf14bc69c984841539715f
[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: Mark Haverkamp <markh@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aacraid/linit.c