summaryrefslogtreecommitdiffstats
path: root/fs/smbfs/file.c
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2006-04-19 00:19:55 +0200
committerDave Jones <davej@redhat.com>2006-04-19 00:19:55 +0200
commitf1f76afd71e0f17af9a35fcb649f4bab53304a4d (patch)
treea56257b13a0eda4a9b7e950c3b85adad16341b80 /fs/smbfs/file.c
parent[CPUFREQ] x86_64: Proper null pointer check in powernow_k8_get (diff)
parentx86: be careful about tailcall breakage for sys_open[at] too (diff)
downloadlinux-f1f76afd71e0f17af9a35fcb649f4bab53304a4d.tar.xz
linux-f1f76afd71e0f17af9a35fcb649f4bab53304a4d.zip
Merge ../linus
Diffstat (limited to 'fs/smbfs/file.c')
-rw-r--r--fs/smbfs/file.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/smbfs/file.c b/fs/smbfs/file.c
index c56bd99a9701..ed9a24d19d7d 100644
--- a/fs/smbfs/file.c
+++ b/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;