Changeset 399 for GPL/branches/uniaud32-2.0/alsa-kernel/pci/cmipci.c
- Timestamp:
- Oct 30, 2008, 9:57:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.0/alsa-kernel/pci/cmipci.c
r358 r399 2363 2363 struct cmipci_switch_args *args; 2364 2364 args = (struct cmipci_switch_args *)kcontrol->private_value; 2365 snd_assert(args != NULL, return -EINVAL); 2365 if (snd_BUG_ON(!args)) 2366 return -EINVAL; 2366 2367 return _snd_cmipci_uswitch_get(kcontrol, ucontrol, args); 2367 2368 } … … 2407 2408 struct cmipci_switch_args *args; 2408 2409 args = (struct cmipci_switch_args *)kcontrol->private_value; 2409 snd_assert(args != NULL, return -EINVAL); 2410 if (snd_BUG_ON(!args)) 2411 return -EINVAL; 2410 2412 return _snd_cmipci_uswitch_put(kcontrol, ucontrol, args); 2411 2413 } … … 2679 2681 int err; 2680 2682 2681 snd_assert(cm != NULL && cm->card != NULL, return -EINVAL); 2683 if (snd_BUG_ON(!cm || !cm->card)) 2684 return -EINVAL; 2682 2685 2683 2686 card = cm->card;
Note:
See TracChangeset
for help on using the changeset viewer.