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