[PATCH] drivers/char/mwave/tp3780i.c: remove dead code

This patch removes some dead code found by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Adrian Bunk and committed by Linus Torvalds e8e1c729 67da54cf

+1 -5
+1 -5
drivers/char/mwave/tp3780i.c
··· 286 int tp3780I_EnableDSP(THINKPAD_BD_DATA * pBDData) 287 { 288 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; 289 - BOOLEAN bDSPPoweredUp = FALSE, bDSPEnabled = FALSE, bInterruptAllocated = FALSE; 290 291 PRINTK_2(TRACE_TP3780I, "tp3780i::tp3780I_EnableDSP entry pBDData %p\n", pBDData); 292 ··· 391 if (dsp3780I_EnableDSP(pSettings, s_ausThinkpadIrqToField, s_ausThinkpadDmaToField)) { 392 PRINTK_ERROR("tp3780i::tp3780I_EnableDSP: Error: dsp7880I_EnableDSP() failed\n"); 393 goto exit_cleanup; 394 - } else { 395 - bDSPEnabled = TRUE; 396 } 397 398 EnableSRAM(pBDData); ··· 403 404 exit_cleanup: 405 PRINTK_ERROR("tp3780i::tp3780I_EnableDSP: Cleaning up\n"); 406 - if (bDSPEnabled) 407 - dsp3780I_DisableDSP(pSettings); 408 if (bDSPPoweredUp) 409 smapi_set_DSP_power_state(FALSE); 410 if (bInterruptAllocated) {
··· 286 int tp3780I_EnableDSP(THINKPAD_BD_DATA * pBDData) 287 { 288 DSP_3780I_CONFIG_SETTINGS *pSettings = &pBDData->rDspSettings; 289 + BOOLEAN bDSPPoweredUp = FALSE, bInterruptAllocated = FALSE; 290 291 PRINTK_2(TRACE_TP3780I, "tp3780i::tp3780I_EnableDSP entry pBDData %p\n", pBDData); 292 ··· 391 if (dsp3780I_EnableDSP(pSettings, s_ausThinkpadIrqToField, s_ausThinkpadDmaToField)) { 392 PRINTK_ERROR("tp3780i::tp3780I_EnableDSP: Error: dsp7880I_EnableDSP() failed\n"); 393 goto exit_cleanup; 394 } 395 396 EnableSRAM(pBDData); ··· 405 406 exit_cleanup: 407 PRINTK_ERROR("tp3780i::tp3780I_EnableDSP: Cleaning up\n"); 408 if (bDSPPoweredUp) 409 smapi_set_DSP_power_state(FALSE); 410 if (bInterruptAllocated) {