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-01-21 09:05:13 +00:00
2005-10-05 20:05:52 +00:00
2006-01-21 09:05:13 +00:00