mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-27 05:20:58 +07:00
[media] stk1160: remove unneeded check
"card" is a valid pointer here because we checked snd_card_create() for error returns. Checking after a dereference makes the static checkers complain. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Ezequiel Garcia <elezegarcia@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
f367cc1efe
commit
0590c7130d
@ -133,8 +133,7 @@ int stk1160_ac97_register(struct stk1160 *dev)
|
||||
|
||||
err:
|
||||
dev->snd_card = NULL;
|
||||
if (card)
|
||||
snd_card_free(card);
|
||||
snd_card_free(card);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user