]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/s390/char/tape_3590.c
[S390] BUG to BUG_ON changes
[linux-2.6-omap-h63xx.git] / drivers / s390 / char / tape_3590.c
index 5a5bb97a081a4b63f06829ec24aa232d9e5e7ce0..fc1d91294143192dbc57a8f12d3bfe9e1b6aeed7 100644 (file)
@@ -664,8 +664,7 @@ tape_3590_bread(struct tape_device *device, struct request *req)
                        ccw++;
                        dst += TAPEBLOCK_HSEC_SIZE;
                }
-               if (off > bv->bv_len)
-                       BUG();
+               BUG_ON(off > bv->bv_len);
        }
        ccw = tape_ccw_end(ccw, NOP, 0, NULL);
        DBF_EVENT(6, "xBREDccwg\n");