Changes in uspace/drv/audio/hdaudio/hdaudio.c [4f87a85a:3fafe5e0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/hdaudio.c
r4f87a85a r3fafe5e0 151 151 { 152 152 ddf_fun_t *fun_pcm = NULL; 153 bool bound = false;154 153 hda_t *hda = NULL; 155 154 hw_res_list_parsed_t res; … … 300 299 } 301 300 302 bound = true; 303 304 rc = ddf_fun_add_to_category(fun_pcm, "audio-pcm"); 305 if (rc != EOK) { 306 ddf_msg(LVL_ERROR, "Failed adding function to audio-pcm category."); 307 goto error; 308 } 301 ddf_fun_add_to_category(fun_pcm, "audio-pcm"); 309 302 310 303 hw_res_list_parsed_clean(&res); 311 304 return EOK; 312 305 error: 313 if (bound)314 ddf_fun_unbind(fun_pcm);315 306 if (fun_pcm != NULL) 316 307 ddf_fun_destroy(fun_pcm);
Note:
See TracChangeset
for help on using the changeset viewer.