mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
replace ASSERT by BUG_ON.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
This commit is contained in:
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 ||
|
||||
|
||||