Commit 02417f47 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by David S. Miller

mISDN: remove unnecessary variable assignments

Remove unnecessary variable assignments.

Addresses-Coverity-ID: 1226917
Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 06044751
...@@ -364,8 +364,8 @@ isac_mos_irq(struct isac_hw *isac) ...@@ -364,8 +364,8 @@ isac_mos_irq(struct isac_hw *isac)
WriteISAC(isac, ISAC_MOCR, isac->mocr); WriteISAC(isac, ISAC_MOCR, isac->mocr);
if (isac->mon_txc && (isac->mon_txp >= isac->mon_txc)) { if (isac->mon_txc && (isac->mon_txp >= isac->mon_txc)) {
if (isac->monitor) if (isac->monitor)
ret = isac->monitor(isac->dch.hw, isac->monitor(isac->dch.hw,
MONITOR_TX_0, NULL, 0); MONITOR_TX_0, NULL, 0);
} }
kfree(isac->mon_tx); kfree(isac->mon_tx);
isac->mon_tx = NULL; isac->mon_tx = NULL;
...@@ -375,8 +375,8 @@ isac_mos_irq(struct isac_hw *isac) ...@@ -375,8 +375,8 @@ isac_mos_irq(struct isac_hw *isac)
} }
if (isac->mon_txc && (isac->mon_txp >= isac->mon_txc)) { if (isac->mon_txc && (isac->mon_txp >= isac->mon_txc)) {
if (isac->monitor) if (isac->monitor)
ret = isac->monitor(isac->dch.hw, isac->monitor(isac->dch.hw,
MONITOR_TX_0, NULL, 0); MONITOR_TX_0, NULL, 0);
kfree(isac->mon_tx); kfree(isac->mon_tx);
isac->mon_tx = NULL; isac->mon_tx = NULL;
isac->mon_txc = 0; isac->mon_txc = 0;
...@@ -397,8 +397,8 @@ isac_mos_irq(struct isac_hw *isac) ...@@ -397,8 +397,8 @@ isac_mos_irq(struct isac_hw *isac)
WriteISAC(isac, ISAC_MOCR, isac->mocr); WriteISAC(isac, ISAC_MOCR, isac->mocr);
if (isac->mon_txc && (isac->mon_txp >= isac->mon_txc)) { if (isac->mon_txc && (isac->mon_txp >= isac->mon_txc)) {
if (isac->monitor) if (isac->monitor)
ret = isac->monitor(isac->dch.hw, isac->monitor(isac->dch.hw,
MONITOR_TX_1, NULL, 0); MONITOR_TX_1, NULL, 0);
} }
kfree(isac->mon_tx); kfree(isac->mon_tx);
isac->mon_tx = NULL; isac->mon_tx = NULL;
...@@ -408,8 +408,8 @@ isac_mos_irq(struct isac_hw *isac) ...@@ -408,8 +408,8 @@ isac_mos_irq(struct isac_hw *isac)
} }
if (isac->mon_txc && (isac->mon_txp >= isac->mon_txc)) { if (isac->mon_txc && (isac->mon_txp >= isac->mon_txc)) {
if (isac->monitor) if (isac->monitor)
ret = isac->monitor(isac->dch.hw, isac->monitor(isac->dch.hw,
MONITOR_TX_1, NULL, 0); MONITOR_TX_1, NULL, 0);
kfree(isac->mon_tx); kfree(isac->mon_tx);
isac->mon_tx = NULL; isac->mon_tx = NULL;
isac->mon_txc = 0; isac->mon_txc = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment