Changeset 399 for GPL/branches/uniaud32-2.0/alsa-kernel/drivers/opl3
- Timestamp:
- Oct 30, 2008, 9:57:08 AM (17 years ago)
- Location:
- GPL/branches/uniaud32-2.0/alsa-kernel/drivers/opl3
- Files:
-
- 3 edited
-
opl3_lib.c (modified) (2 diffs)
-
opl3_midi.c (modified) (2 diffs)
-
opl3_synth.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.0/alsa-kernel/drivers/opl3/opl3_lib.c
r305 r399 140 140 * by the OPL4 driver; so we can assume OPL3 here. 141 141 */ 142 snd_assert(opl3->r_port != 0, return -ENODEV); 142 if (snd_BUG_ON(!opl3->r_port)) 143 return -ENODEV; 143 144 opl3->hardware = OPL3_HW_OPL3; 144 145 } … … 325 326 static int snd_opl3_free(struct snd_opl3 *opl3) 326 327 { 327 snd_assert(opl3 != NULL, return -ENXIO); 328 if (snd_BUG_ON(!opl3)) 329 return -ENXIO; 328 330 if (opl3->private_free) 329 331 opl3->private_free(opl3); -
GPL/branches/uniaud32-2.0/alsa-kernel/drivers/opl3/opl3_midi.c
r305 r399 618 618 struct snd_opl3_voice *vp, *vp2; 619 619 620 snd_assert(voice < MAX_OPL3_VOICES, return); 620 if (snd_BUG_ON(voice >= MAX_OPL3_VOICES)) 621 return; 621 622 622 623 vp = &opl3->voices[voice]; … … 738 739 struct snd_opl3_voice *vp; 739 740 740 snd_assert(voice < MAX_OPL3_VOICES, return); 741 if (snd_BUG_ON(voice >= MAX_OPL3_VOICES)) 742 return; 741 743 742 744 vp = &opl3->voices[voice]; -
GPL/branches/uniaud32-2.0/alsa-kernel/drivers/opl3/opl3_synth.c
r305 r399 93 93 void __user *argp = (void __user *)arg; 94 94 95 snd_assert(opl3 != NULL, return -EINVAL); 95 if (snd_BUG_ON(!opl3)) 96 return -EINVAL; 96 97 97 98 switch (cmd) {
Note:
See TracChangeset
for help on using the changeset viewer.
