summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@codeaurora.org>2017-03-24 15:30:52 -0700
committerSandeep Puligilla <spuligil@codeaurora.org>2017-03-31 02:35:22 -0700
commit4a3af042ab9b856a34c30c9675196f9afb816fda (patch)
tree1520a3867c0e6ac2d131ec14e5d3fec933f729ad
parent5d76e6500f85d9605888dd9e5e2f799c8774e14a (diff)
qcacld-3.0: Fix checkpatch issues in wlan_hdd_driver_ops
The kernel checkpatch script has detected some issues in wlan_hdd_driver_ops.h and wlan_hdd_driver_ops.c, so fix them. Change-Id: I1b08d9dd5147eeebeba2f545d7530bdff6867a5e CRs-Fixed: 2024274
-rw-r--r--core/hdd/inc/wlan_hdd_driver_ops.h4
-rw-r--r--core/hdd/src/wlan_hdd_driver_ops.c15
2 files changed, 9 insertions, 10 deletions
diff --git a/core/hdd/inc/wlan_hdd_driver_ops.h b/core/hdd/inc/wlan_hdd_driver_ops.h
index 34c8c118c014..9daf5229444c 100644
--- a/core/hdd/inc/wlan_hdd_driver_ops.h
+++ b/core/hdd/inc/wlan_hdd_driver_ops.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2015-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -34,7 +34,7 @@
* DOC: wlan_hdd_driver_ops.h
*
* Functions to register the wlan driver.
-*/
+ */
int wlan_hdd_register_driver(void);
void wlan_hdd_unregister_driver(void);
diff --git a/core/hdd/src/wlan_hdd_driver_ops.c b/core/hdd/src/wlan_hdd_driver_ops.c
index ff4aa493d0d1..9c8a6c31f6bc 100644
--- a/core/hdd/src/wlan_hdd_driver_ops.c
+++ b/core/hdd/src/wlan_hdd_driver_ops.c
@@ -170,8 +170,6 @@ static void hdd_deinit_cds_hif_context(void)
if (status)
hdd_err("Failed to reset CDS HIF Context");
-
- return;
}
/**
@@ -341,11 +339,11 @@ static int wlan_hdd_probe(struct device *dev, void *bdev, const hif_bus_id *bid,
hdd_prevent_suspend(WIFI_POWER_EVENT_WAKELOCK_DRIVER_INIT);
/*
- * The Krait is going to Idle/Stand Alone Power Save
- * more aggressively which is resulting in the longer driver load time.
- * The Fix is to not allow Krait to enter Idle Power Save during driver
- * load.
- */
+ * The Krait is going to Idle/Stand Alone Power Save
+ * more aggressively which is resulting in the longer driver load time.
+ * The Fix is to not allow Krait to enter Idle Power Save during driver
+ * load.
+ */
hdd_request_pm_qos(dev, DISABLE_KRAIT_IDLE_PS_VAL);
if (reinit)
@@ -514,7 +512,8 @@ static void wlan_hdd_crash_shutdown(void)
static void wlan_hdd_notify_handler(int state)
{
if (!QDF_IS_EPPING_ENABLED(cds_get_conparam())) {
- int ret = 0;
+ int ret;
+
ret = hdd_wlan_notify_modem_power_state(state);
if (ret < 0)
hdd_err("Fail to send notify");