]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sunrpc/cache.c
SUNRPC,RPCSEC_GSS: remove unnecessary kmalloc of a checksum
[linux-2.6-omap-h63xx.git] / net / sunrpc / cache.c
index f509e99927675e173f251f44637f976489a0abf1..dcaa0c4453ff4b0a7eb532a5676bfe3d27349e5c 100644 (file)
@@ -575,12 +575,11 @@ cache_read(struct file *filp, char __user *buf, size_t count, loff_t *ppos)
        if (rp->q.list.next == &cd->queue) {
                spin_unlock(&queue_lock);
                up(&queue_io_sem);
-               if (rp->offset)
-                       BUG();
+               BUG_ON(rp->offset);
                return 0;
        }
        rq = container_of(rp->q.list.next, struct cache_request, q.list);
-       if (rq->q.reader) BUG();
+       BUG_ON(rq->q.reader);
        if (rp->offset == 0)
                rq->readers++;
        spin_unlock(&queue_lock);