Commit 5df0d312413d920628f149421d7b0a3994684620
Committed by
Adrian Bunk
1 parent
4b4d1cc733
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 2 additions and 4 deletions Side-by-side Diff
fs/smbfs/file.c
... | ... | @@ -178,11 +178,9 @@ |
178 | 178 | unsigned offset = PAGE_CACHE_SIZE; |
179 | 179 | int err; |
180 | 180 | |
181 | - if (!mapping) | |
182 | - BUG(); | |
181 | + BUG_ON(!mapping); | |
183 | 182 | inode = mapping->host; |
184 | - if (!inode) | |
185 | - BUG(); | |
183 | + BUG_ON(!inode); | |
186 | 184 | |
187 | 185 | end_index = inode->i_size >> PAGE_CACHE_SHIFT; |
188 | 186 |