mISDN: remove unnecessary variable assignments
Subsystems (2)
PATCH 1/1 mISDN: remove unnecessary variable assignments
Remove unnecessary variable assignments.
Addresses-Coverity-ID: 1226917
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/isdn/hardware/mISDN/mISDNipac.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/isdn/hardware/mISDN/mISDNipac.c +8 -8
@@ -364,8 +364,8 @@ isac_mos_irq(struct isac_hw *isac)WriteISAC (isac,ISAC_MOCR , isac->mocr);if (isac->mon_txc && (isac->mon_txp >= isac->mon_txc)) {if (isac->monitor) - ret = isac->monitor (isac->dch.hw, -MONITOR_TX_0 ,NULL ,0 ); + isac->monitor (isac->dch.hw, +MONITOR_TX_0 ,NULL ,0 ); }kfree (isac->mon_tx); isac->mon_tx =NULL ;
@@ -375,8 +375,8 @@ isac_mos_irq(struct isac_hw *isac) }if (isac->mon_txc && (isac->mon_txp >= isac->mon_txc)) {if (isac->monitor) - ret = isac->monitor (isac->dch.hw, -MONITOR_TX_0 ,NULL ,0 ); + isac->monitor (isac->dch.hw, +MONITOR_TX_0 ,NULL ,0 );kfree (isac->mon_tx); isac->mon_tx =NULL ; isac->mon_txc =0 ;
@@ -397,8 +397,8 @@ isac_mos_irq(struct isac_hw *isac)WriteISAC (isac,ISAC_MOCR , isac->mocr);if (isac->mon_txc && (isac->mon_txp >= isac->mon_txc)) {if (isac->monitor) - ret = isac->monitor (isac->dch.hw, -MONITOR_TX_1 ,NULL ,0 ); + isac->monitor (isac->dch.hw, +MONITOR_TX_1 ,NULL ,0 ); }kfree (isac->mon_tx); isac->mon_tx =NULL ;
@@ -408,8 +408,8 @@ isac_mos_irq(struct isac_hw *isac) }if (isac->mon_txc && (isac->mon_txp >= isac->mon_txc)) {if (isac->monitor) - ret = isac->monitor (isac->dch.hw, -MONITOR_TX_1 ,NULL ,0 ); + isac->monitor (isac->dch.hw, +MONITOR_TX_1 ,NULL ,0 );kfree (isac->mon_tx); isac->mon_tx =NULL ; isac->mon_txc =0 ;
Signature · 1 line
2.5.0
From: "Gustavo A. R. Silva" <[email protected]>
Date: Wed, 7 Jun 2017 15:15:01 -0500
Quoted 4 lines
Remove unnecessary variable assignments.
Addresses-Coverity-ID: 1226917
Signed-off-by Gustavo A. R. Silva <[email protected]>
Applied to net-next, thanks.