Skip to contentSkip to conversation

media: rc: nuvoton-cir: simplify nvt_cir_tx_inactive

PATCH In review Heiner Kallweit 1 participant 1 message Dec 30, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/16 media: rc: nuvoton-cir: simplify nvt_cir_tx_inactive

Simplify nvt_cir_tx_inactive.

---
 drivers/media/rc/nuvoton-cir.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/media/rc/nuvoton-cir.c +1 -4
index 2539d4f..f661eff 100644
@@ -742,16 +742,13 @@ static void nvt_cir_log_irqs(u8 status, u8 iren)
 static bool nvt_cir_tx_inactive(struct nvt_dev *nvt)
 {
 	unsigned long flags;
-	bool tx_inactive;
 	u8 tx_state;
 
 	spin_lock_irqsave(&nvt->tx.lock, flags);
 	tx_state = nvt->tx.tx_state;
 	spin_unlock_irqrestore(&nvt->tx.lock, flags);
 
-	tx_inactive = (tx_state == ST_TX_NONE);
-
-	return tx_inactive;
+	return tx_state == ST_TX_NONE;
 }
 
 /* interrupt service routine for incoming and outgoing CIR data */
Signature · 1 line
2.6.4