audio: Remove conditional around sw which can not be NULL
Noticed by Steve Grubb. Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
parent
493abda627
commit
7cbb28ed5d
|
@ -485,7 +485,6 @@ SW *glue (AUD_open_, TYPE) (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sw) {
|
|
||||||
sw->card = card;
|
sw->card = card;
|
||||||
sw->vol = nominal_volume;
|
sw->vol = nominal_volume;
|
||||||
sw->callback.fn = callback_fn;
|
sw->callback.fn = callback_fn;
|
||||||
|
@ -510,7 +509,6 @@ SW *glue (AUD_open_, TYPE) (
|
||||||
audio_pcm_print_info ("hw", &sw->hw->info);
|
audio_pcm_print_info ("hw", &sw->hw->info);
|
||||||
audio_pcm_print_info ("sw", &sw->info);
|
audio_pcm_print_info ("sw", &sw->info);
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
|
|
||||||
return sw;
|
return sw;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue