X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fudf%2Finode.c;h=2983afd5e7fd4932ca77cd24e95041f94b719062;hb=201ce85946504ea0e6bd9a365de26684b437121e;hp=81e0e8459af1159921b8b8f3f99e419b3e7869aa;hpb=0c50527379496bb7a662f181d0baf0bf2c7a88a6;p=linux-2.6 diff --git a/fs/udf/inode.c b/fs/udf/inode.c index 81e0e8459a..2983afd5e7 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c @@ -312,12 +312,10 @@ static int udf_get_block(struct inode *inode, sector_t block, struct buffer_head err = 0; bh = inode_getblk(inode, block, &err, &phys, &new); - if (bh) - BUG(); + BUG_ON(bh); if (err) goto abort; - if (!phys) - BUG(); + BUG_ON(!phys); if (new) set_buffer_new(bh_result);