mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2024-12-13 23:50:57 +00:00
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:
parent
4b4d1cc733
commit
5df0d31241
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user