Repository navigation
Commit d570216
ALSA: Make snd_BUG_ON() always evaluate and return the conditional expression
Having snd_BUG_ON() only evaluate its conditional when CONFIG_SND_DEBUG
is set leads to frequent bugs, since other similar macros in the kernel
have different behavior. Let's make snd_BUG_ON() act like those macros
so it will stop being accidentally misused.
Signed-off-by: Christine Spang <christine.spang@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>1 parent 8ba955c commit d570216
2 files changed
Lines changed: 13 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6164 | 6164 | | |
6165 | 6165 | | |
6166 | 6166 | | |
6167 | | - | |
6168 | | - | |
6169 | | - | |
| 6167 | + | |
| 6168 | + | |
6170 | 6169 | | |
6171 | | - | |
6172 | | - | |
6173 | | - | |
6174 | | - | |
| 6170 | + | |
| 6171 | + | |
| 6172 | + | |
6175 | 6173 | | |
6176 | 6174 | | |
6177 | 6175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
| 382 | + | |
| 383 | + | |
392 | 384 | | |
393 | | - | |
| 385 | + | |
394 | 386 | | |
395 | 387 | | |
396 | 388 | | |
| |||
400 | 392 | | |
401 | 393 | | |
402 | 394 | | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
408 | 400 | | |
409 | 401 | | |
410 | 402 | | |
| |||
0 commit comments