Alexander Leidinger cd9de7ee61 A pointer was checked for NULL after dereferencing it. The check is not
needed here, except there's a bug which results in detaching the device
twice.

Move the NULL pointer check to the beginning of the function and convert
it into a KASSERT.

CID:		420
Found with:	Coverity Prevent(tm)
Discussed with:	ariff
MFC after:	5 days
2006-02-05 17:33:18 +00:00
..
2006-02-04 13:29:09 +00:00
2005-12-04 02:12:43 +00:00
2006-02-03 15:25:52 +00:00
2006-02-01 12:06:01 +00:00
2006-01-29 22:06:51 +00:00
2006-01-21 10:44:34 +00:00
2006-01-21 10:44:34 +00:00
2006-02-02 11:14:13 +00:00
2006-01-30 16:32:08 +00:00