Skip to contentSkip to conversation

small cleanups

PATCH New Bartosz Markowski 2 participants 6 messages Apr 16, 2013 – Apr 17, 2013 Qualcomm Atheros ATH10K wireless driver

lore
Share & tools
lore
#0 lore raw

cover small cleanups

Bartosz Markowski (4):
ath10k: fix indentation
ath10k: remove odd 'todo' comment
ath10k: remove 'todo' comments
ath10k: remove obsolete define

 drivers/net/wireless/ath/ath10k/core.c     |    6 +-----
 drivers/net/wireless/ath/ath10k/htc-priv.h |    3 ---
 drivers/net/wireless/ath/ath10k/htc.c      |    7 +++----
 drivers/net/wireless/ath/ath10k/wmi.h      |    4 ----
 4 files changed, 4 insertions(+), 16 deletions(-)
Signature · 1 line
1.7.10
#1 lore raw

PATCH 1/4 ath10k: fix indentation

---
 drivers/net/wireless/ath/ath10k/htc.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/net/wireless/ath/ath10k/htc.c +3 -4
index 3dca6a5..ff4b1bf 100644
@@ -101,14 +101,14 @@ static struct sk_buff *ath10k_htc_build_tx_ctrl_skb(void *ar)
 }
 
 static inline void ath10k_htc_restore_tx_skb(struct htc_target *target,
-				       struct sk_buff *skb)
+					     struct sk_buff *skb)
 {
 	ath10k_skb_unmap(target->ar->dev, skb);
 	skb_pull(skb, sizeof(struct htc_hdr));
 }
 
 static void ath10k_htc_notify_tx_completion(struct htc_endpoint *ep,
-				     struct sk_buff *skb)
+					    struct sk_buff *skb)
 {
 	struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(skb);
 
@@ -134,8 +134,7 @@ static bool ath10k_htc_ep_need_credit_update(struct htc_endpoint *ep)
 	if (ep->tx_credits >= ep->tx_credits_per_max_message)
 		return false;
 
-	ath10k_dbg(ATH10K_DBG_HTC, "HTC: endpoint %d needs credit update\n",
-		   ep->ep_id);
+	ath10k_dbg(ATH10K_DBG_HTC, "HTC: endpoint %d needs credit update\n", ep->ep_id);
 	return true;
 }
 
Signature · 1 line
1.7.10
#2 lore raw

PATCH 2/4 ath10k: remove odd 'todo' comment

In reply to Bartosz Markowski

Seems like it was inherited from properiatery driver. Does not make sense to in ath10k context.

---
 drivers/net/wireless/ath/ath10k/wmi.h |    4 ----
 1 file changed, 4 deletions(-)
drivers/net/wireless/ath/ath10k/wmi.h +0 -4
index 33548ca..c104b67 100644
@@ -2656,10 +2656,6 @@ struct wmi_peer_set_q_empty_callback_cmd {
  * This is of interest to the ratecontrol
  * module which resides in the firmware. The bit definitions are
  * consistent with that defined in if_athrate.c.
- *
- * todo:
- * Move this to a common header file later so there is no need to
- * duplicate the definitions or maintain consistency.
  */
 #define WMI_RC_DS_FLAG          0x01
 #define WMI_RC_CW40_FLAG        0x02
Signature · 1 line
1.7.10
#3 lore raw

PATCH 3/4 ath10k: remove 'todo' comments

In reply to Bartosz Markowski

* firmware download
Revisited, seems we handle error paths properly.

* core registering
Revisited. As for current design, fallback shall be safe.

---
 drivers/net/wireless/ath/ath10k/core.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/net/wireless/ath/ath10k/core.c +1 -5
index 3cf03a9..0d3cb8b 100644
@@ -562,7 +562,6 @@ int ath10k_core_register(struct ath10k *ar)
 
 	if (ath10k_init_download_firmware(ar)) {
 		status = -EIO;
-		/* TODO: check if there's really nothing to clean */
 		goto err;
 	}
 
@@ -627,10 +626,7 @@ int ath10k_core_register(struct ath10k *ar)
 	}
 
 	return 0;
-/*
- * TODO: Revisit this once more when decided on exact
- * start sequece and callbacks
- */
+
 err_unregister_mac:
 	ath10k_mac_unregister(ar);
 err_disconnect_htc:
Signature · 1 line
1.7.10
#4 lore raw

PATCH 4/4 ath10k: remove obsolete define

In reply to Bartosz Markowski
---
 drivers/net/wireless/ath/ath10k/htc-priv.h |    3 ---
 1 file changed, 3 deletions(-)
drivers/net/wireless/ath/ath10k/htc-priv.h +0 -3
index 89bd91a..f47dabc 100644
@@ -213,9 +213,6 @@ struct htc_frame {
 /* HTC operational parameters */
 #define NUM_CONTROL_TX_BUFFERS 2
 
-/* TODO, this is just a temporary max packet size */
-#define MAX_MESSAGE_SIZE 1536
-
 #define HTC_WAIT_TIMEOUT_HZ (1*HZ)
 #define HTC_CONTROL_BUFFER_SIZE (HTC_MAX_CTRL_MSG_LEN + sizeof(struct htc_hdr))
 #define HTC_CONN_SVC_TIMEOUT_HZ (1*HZ)
Signature · 1 line
1.7.10
#5 lore raw

cover small cleanups

In reply to Bartosz Markowski
Quoted 5 lines · Bartosz Markowski

Bartosz Markowski (4):
ath10k: fix indentation
ath10k: remove odd 'todo' comment
ath10k: remove 'todo' comments
ath10k: remove obsolete define

Thanks, all four applied.

Signature · 1 line
Kalle Valo