diff options
Diffstat (limited to 'drivers/usb/gadget/function/u_uac1.c')
-rw-r--r-- | drivers/usb/gadget/function/u_uac1.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/gadget/function/u_uac1.c b/drivers/usb/gadget/function/u_uac1.c index a44a07f30281..53842a1b947f 100644 --- a/drivers/usb/gadget/function/u_uac1.c +++ b/drivers/usb/gadget/function/u_uac1.c | |||
@@ -213,9 +213,6 @@ static int gaudio_open_snd_dev(struct gaudio *card) | |||
213 | fn_cap = opts->fn_cap; | 213 | fn_cap = opts->fn_cap; |
214 | fn_cntl = opts->fn_cntl; | 214 | fn_cntl = opts->fn_cntl; |
215 | 215 | ||
216 | if (!card) | ||
217 | return -ENODEV; | ||
218 | |||
219 | /* Open control device */ | 216 | /* Open control device */ |
220 | snd = &card->control; | 217 | snd = &card->control; |
221 | snd->filp = filp_open(fn_cntl, O_RDWR, 0); | 218 | snd->filp = filp_open(fn_cntl, O_RDWR, 0); |