]> err.no Git - linux-2.6/blobdiff - drivers/block/cpqarray.c
V4L/DVB (4210b): git-dvb: tea575x-tuner build fix
[linux-2.6] / drivers / block / cpqarray.c
index 862b9abac0aea0943298aa61bc581ba14fa8edc5..b6ea2f0c72763c3b8df3a67c89a785f36841e2c1 100644 (file)
@@ -906,8 +906,7 @@ queue_next:
        if (!creq)
                goto startio;
 
-       if (creq->nr_phys_segments > SG_MAX)
-               BUG();
+       BUG_ON(creq->nr_phys_segments > SG_MAX);
 
        if ((c = cmd_alloc(h,1)) == NULL)
                goto startio;