qcacld-3.0: Fix long lines in wlan_hdd_ipa.c
Checkpatch has detected multiple instances of "line over 80
characters" so fix them. Also fix one instance of "else is not
generally useful after a break or return."
Change-Id: Ifb03d4d1399a53fa69f03ce2f77ccfca3929d1cc
CRs-Fixed: 2122822
diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c
index d68c133..248752c 100644
--- a/core/hdd/src/wlan_hdd_ipa.c
+++ b/core/hdd/src/wlan_hdd_ipa.c
@@ -1666,7 +1666,8 @@
*
* Return: None
*/
-static void __hdd_ipa_uc_stat_request(struct hdd_adapter *adapter, uint8_t reason)
+static void __hdd_ipa_uc_stat_request(struct hdd_adapter *adapter,
+ uint8_t reason)
{
struct hdd_context *hdd_ctx;
struct hdd_ipa_priv *hdd_ipa;
@@ -3493,8 +3494,9 @@
*
* Return: 0 on success, negative errno on error
*/
-static int __hdd_ipa_set_perf_level(struct hdd_context *hdd_ctx, uint64_t tx_packets,
- uint64_t rx_packets)
+static int __hdd_ipa_set_perf_level(struct hdd_context *hdd_ctx,
+ uint64_t tx_packets,
+ uint64_t rx_packets)
{
uint32_t next_cons_bw, next_prod_bw;
struct hdd_ipa_priv *hdd_ipa;
@@ -4762,11 +4764,13 @@
#ifndef QCA_LL_TX_FLOW_CONTROL_V2
/**
* __hdd_ipa_send_mcc_scc_msg() - send IPA WLAN_SWITCH_TO_MCC/SCC message
+ * @hdd_ctx: HDD context
* @mcc_mode: 0=MCC/1=SCC
*
* Return: 0 on success, negative errno value on error
*/
-static int __hdd_ipa_send_mcc_scc_msg(struct hdd_context *hdd_ctx, bool mcc_mode)
+static int __hdd_ipa_send_mcc_scc_msg(struct hdd_context *hdd_ctx,
+ bool mcc_mode)
{
hdd_adapter_list_node_t *adapter_node = NULL, *next = NULL;
QDF_STATUS status;
@@ -5024,12 +5028,11 @@
qdf_mutex_release(&hdd_ipa->ipa_lock);
}
return 0;
- } else {
- HDD_IPA_LOG(QDF_TRACE_LEVEL_ERROR,
- "IPA resource %s completed",
- hdd_ipa->resource_loading ?
- "load" : "unload");
}
+ HDD_IPA_LOG(QDF_TRACE_LEVEL_ERROR,
+ "IPA resource %s completed",
+ hdd_ipa->resource_loading ?
+ "load" : "unload");
}
hdd_ipa->stats.event[type]++;