BUG_ON() Conversion in fs/smbfs/

this changes if() BUG(); constructs to BUG_ON() which is
cleaner, contains unlikely() and can better optimized away.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
This commit is contained in:
Eric Sesterhenn 2006-04-01 01:16:26 +02:00 committed by Adrian Bunk
parent 4b4d1cc733
commit 5df0d31241

View file

@ -178,11 +178,9 @@ smb_writepage(struct page *page, struct writeback_control *wbc)
unsigned offset = PAGE_CACHE_SIZE;
int err;
if (!mapping)
BUG();
BUG_ON(!mapping);
inode = mapping->host;
if (!inode)
BUG();
BUG_ON(!inode);
end_index = inode->i_size >> PAGE_CACHE_SHIFT;