Split long line instead of unindenting it. Add KASSERT() verifying
that a device object with the same handle has the same ops vector. Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
30c35b9b92
commit
0c693337e5
@ -169,7 +169,10 @@ cdev_pager_allocate(void *handle, enum obj_type tp, struct cdev_pager_ops *ops,
|
||||
if (pindex > object->size)
|
||||
object->size = pindex;
|
||||
KASSERT(object->type == tp,
|
||||
("Inconsistent device pager type %p %d", object, tp));
|
||||
("Inconsistent device pager type %p %d",
|
||||
object, tp));
|
||||
KASSERT(object->un_pager.devp.ops == ops,
|
||||
("Inconsistent devops %p %p", object, ops));
|
||||
} else {
|
||||
object = object1;
|
||||
object1 = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user