aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/ad1816a/ad1816a_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/isa/ad1816a/ad1816a_lib.c')
-rw-r--r--sound/isa/ad1816a/ad1816a_lib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/isa/ad1816a/ad1816a_lib.c b/sound/isa/ad1816a/ad1816a_lib.c
index 4b8dfe2e3dcb..3bfca7c59baf 100644
--- a/sound/isa/ad1816a/ad1816a_lib.c
+++ b/sound/isa/ad1816a/ad1816a_lib.c
@@ -394,7 +394,8 @@ static int snd_ad1816a_timer_open(struct snd_timer *timer)
394 394
395static unsigned long snd_ad1816a_timer_resolution(struct snd_timer *timer) 395static unsigned long snd_ad1816a_timer_resolution(struct snd_timer *timer)
396{ 396{
397 snd_assert(timer != NULL, return 0); 397 if (snd_BUG_ON(!timer))
398 return 0;
398 399
399 return 10000; 400 return 10000;
400} 401}
@@ -961,7 +962,8 @@ int __devinit snd_ad1816a_mixer(struct snd_ad1816a *chip)
961 unsigned int idx; 962 unsigned int idx;
962 int err; 963 int err;
963 964
964 snd_assert(chip != NULL && chip->card != NULL, return -EINVAL); 965 if (snd_BUG_ON(!chip || !chip->card))
966 return -EINVAL;
965 967
966 card = chip->card; 968 card = chip->card;
967 969