wlan: Fix (-1) return values to conform to quic kernel coding standard
Change-Id: I055655e1c31ef30dd4fd329e2eb0187811bf6d48
CR-Fixed: NA
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 4fc75bb..5ea6d0f 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -541,7 +541,7 @@
if(pAdapter == NULL) {
VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_FATAL,
"%s: HDD adapter context is Null", __func__);
- return -1;
+ return -EINVAL;
}
netif_start_queue(dev);
@@ -3334,7 +3334,7 @@
\param - dev - Pointer to the underlying device
- \return - 0 for success -1 for failure
+ \return - 0 for success, < 0 for failure
--------------------------------------------------------------------------*/
@@ -3368,7 +3368,7 @@
if(wiphy == NULL)
{
hddLog(VOS_TRACE_LEVEL_ERROR,"%s: cfg80211 init failed", __func__);
- return -1;
+ return -EIO;
}
pHddCtx = wiphy_priv(wiphy);
@@ -3379,7 +3379,7 @@
if(pHddCtx == NULL)
{
hddLog(VOS_TRACE_LEVEL_ERROR,"%s: cfg80211 init failed", __func__);
- return -1;
+ return -ENOMEM;
}
#endif
@@ -3987,7 +3987,7 @@
}
hdd_set_ssr_required (VOS_FALSE);
- return -1;
+ return -EIO;
success:
EXIT();
@@ -4032,7 +4032,7 @@
{
hddLog(VOS_TRACE_LEVEL_FATAL, "%s: Libra WLAN not Powered Up. "
"exiting", __func__);
- return -1;
+ return -EIO;
}
#ifdef ANI_BUS_TYPE_SDIO
@@ -4075,7 +4075,7 @@
{
hddLog(VOS_TRACE_LEVEL_FATAL, "%s: Retry Libra WLAN not Powered Up. "
"exiting", __func__);
- return -1;
+ return -EIO;
}
do {