projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f367cc1
)
[media] stk1160: remove unneeded check
author
Dan Carpenter
<
[email protected]
>
Tue, 14 Aug 2012 06:03:35 +0000
(
03:03
-0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Wed, 15 Aug 2012 21:53:29 +0000
(18:53 -0300)
"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 <
[email protected]
>
Acked-by: Ezequiel Garcia <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/usb/stk1160/stk1160-ac97.c
patch
|
blob
|
history
diff --git
a/drivers/media/usb/stk1160/stk1160-ac97.c
b/drivers/media/usb/stk1160/stk1160-ac97.c
index 8d325f50c87bab512fc88e4b052759168fca3cc5..c8583c262c3d0b6f055cdf73a77e7d78037e2929 100644
(file)
--- a/
drivers/media/usb/stk1160/stk1160-ac97.c
+++ b/
drivers/media/usb/stk1160/stk1160-ac97.c
@@
-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;
}