From 6a1a76f401acbcfcfd9ccbb0e6ad169f64f02bd7 Mon Sep 17 00:00:00 2001 From: Eric Sesterhenn Date: Sat, 1 Apr 2006 01:16:26 +0200 Subject: [PATCH] --- yaml --- r: 25192 b: refs/heads/master c: 5df0d312413d920628f149421d7b0a3994684620 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/smbfs/file.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 03b291e1c4b3..8cceddba3bfc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4b4d1cc7336b29f766d4e59d1ed2c627443a694a +refs/heads/master: 5df0d312413d920628f149421d7b0a3994684620 diff --git a/trunk/fs/smbfs/file.c b/trunk/fs/smbfs/file.c index c56bd99a9701..ed9a24d19d7d 100644 --- a/trunk/fs/smbfs/file.c +++ b/trunk/fs/smbfs/file.c @@ -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;