replace ASSERT by BUG_ON.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
This commit is contained in:
vhanquez@kneesa.uk.xensource.com committed 2006-01-16 22:04:42 +00:00
1 parent c4975c1cf0
commit ff45641f7d
2 files changed
+2 -2

No files matched your search

@@ -551,7 +551,7 @@ static int blkif_queue_request(struct request *req)
lsect = fsect + (bvec->bv_len >> 9) - 1;
/* install a grant reference. */
ref = gnttab_claim_grant_reference(&gref_head);
ASSERT(ref != -ENOSPC);
BUG_ON(ref == -ENOSPC);
gnttab_grant_foreign_access_ref(
ref,
@@ -120,7 +120,7 @@ int netif_be_start_xmit(struct sk_buff *skb, struct net_device *dev)
{
netif_t *netif = netdev_priv(dev);
ASSERT(skb->dev == dev);
BUG_ON(skb->dev != dev);
/* Drop the packet if the target domain has no receive buffers. */
if (!netif->active ||
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.