[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:
Dan Carpenter 2012-08-14 03:03:35 -03:00 committed by Mauro Carvalho Chehab
parent f367cc1efe
commit 0590c7130d
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}