Messages in this thread Patch in this message | | | Date | Wed, 13 Apr 2005 04:17:39 +0200 | From | Adrian Bunk <> | Subject | [2.6 patch] sound/oss/cs46xx.c: fix a check after use |
| |
This patch fixes a check after use found by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
---
This patch was already sent on: - 27 Mar 2005
--- linux-2.6.12-rc1-mm1-full/sound/oss/cs46xx.c.old 2005-03-23 04:48:53.000000000 +0100 +++ linux-2.6.12-rc1-mm1-full/sound/oss/cs46xx.c 2005-03-23 04:49:31.000000000 +0100 @@ -3086,13 +3086,14 @@ static void amp_hercules(struct cs_card *card, int change) { - int old=card->amplifier; + int old; if(!card) { CS_DBGOUT(CS_ERROR, 2, printk(KERN_INFO "cs46xx: amp_hercules() called before initialized.\n")); return; } + old = card->amplifier; card->amplifier+=change; if( (card->amplifier && !old) && !(hercules_egpio_disable)) { - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |