diff options
author | Julia Lawall <julia@diku.dk> | 2008-03-04 15:07:24 -0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 12:00:22 +0200 |
commit | 21ac1f9934d33ea2ffa71d13fa2f6286127d3caf (patch) | |
tree | 931b6ad7de0da9e5b745f74c8431d5d2a11b30ae /sound/spi | |
parent | 0ccb541c96e6d40844d00ec88fae734568bdd0bd (diff) | |
download | linux-21ac1f9934d33ea2ffa71d13fa2f6286127d3caf.tar.gz linux-21ac1f9934d33ea2ffa71d13fa2f6286127d3caf.tar.bz2 linux-21ac1f9934d33ea2ffa71d13fa2f6286127d3caf.zip |
sound: Use BUG_ON
if (...) BUG(); should be replaced with BUG_ON(...) when the test has no
side-effects to allow a definition of BUG_ON that drops the code completely.
The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@ disable unlikely @ expression E,f; @@
(
if (<... f(...) ...>) { BUG(); }
|
- if (unlikely(E)) { BUG(); }
+ BUG_ON(E);
)
@@ expression E,f; @@
(
if (<... f(...) ...>) { BUG(); }
|
- if (E) { BUG(); }
+ BUG_ON(E);
)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'sound/spi')
0 files changed, 0 insertions, 0 deletions