Skip to contentSkip to conversation

ath6kl: Use standard way to assign the boolean variable

PATCH In review Mohammed Shafi Shajakhan 1 participant 1 message Nov 16, 2012 Atheros ATH6KL wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 2/8 ath6kl: Use standard way to assign the boolean variable

From: Mohammed Shafi Shajakhan <[email protected]>

Assign 'true' to the bool variable instead of needless typecasting.

---
 drivers/net/wireless/ath/ath6kl/htc_pipe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/ath/ath6kl/htc_pipe.c +1 -1
index ba6bd49..575e7d7 100644
@@ -1184,7 +1184,7 @@ static void reset_endpoint_states(struct htc_target *target)
 		INIT_LIST_HEAD(&ep->pipe.tx_lookup_queue);
 		INIT_LIST_HEAD(&ep->rx_bufq);
 		ep->target = target;
-		ep->pipe.tx_credit_flow_enabled = (bool) 1; /* FIXME */
+		ep->pipe.tx_credit_flow_enabled = true;
 	}
 }
 
Signature · 1 line
1.7.0.4