Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60b388be authored by Dan Carpenter's avatar Dan Carpenter Committed by Felipe Balbi
Browse files

usb: gadget: f_uac1: remove an unneeded NULL check



This NULL check sets off a static checker warning because we already
dereferenced "card" earlier in the function.  However, since "card" is
never NULL so we can just remove the check.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 0abd0696
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -213,9 +213,6 @@ static int gaudio_open_snd_dev(struct gaudio *card)
	fn_cap = opts->fn_cap;
	fn_cntl = opts->fn_cntl;

	if (!card)
		return -ENODEV;

	/* Open control device */
	snd = &card->control;
	snd->filp = filp_open(fn_cntl, O_RDWR, 0);