Parcourir la source

qcacld-3.0: HDD: Fix checkpatch braces issues

Fix checkpatch braces issues.

Change-Id: I0019cd51e9df1c99b67220b44fb1044d46747c9f
CRs-Fixed: 2311614
Srinivas Girigowda il y a 6 ans
Parent
commit
d241288a14

+ 2 - 2
core/hdd/src/wlan_hdd_cfg80211.c

@@ -16510,9 +16510,9 @@ static int __wlan_hdd_cfg80211_connect(struct wiphy *wiphy,
 	status = wlan_hdd_cfg80211_connect_start(adapter, req->ssid,
 						 req->ssid_len, req->bssid,
 						 bssid_hint, channel, 0);
-	if (0 > status) {
+	if (0 > status)
 		hdd_err("connect failed");
-	}
+
 	return status;
 
 con_chk_failed:

+ 2 - 4
core/hdd/src/wlan_hdd_main.c

@@ -10905,9 +10905,8 @@ static int hdd_deconfigure_cds(struct hdd_context *hdd_ctx)
 	hdd_deregister_cb(hdd_ctx);
 
 	qdf_status = policy_mgr_deregister_mode_change_cb(hdd_ctx->hdd_psoc);
-	if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
+	if (!QDF_IS_STATUS_SUCCESS(qdf_status))
 		hdd_debug("Failed to deregister mode change cb with Policy Manager");
-	}
 
 	qdf_status = cds_disable(hdd_ctx->hdd_psoc);
 	if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
@@ -12504,9 +12503,8 @@ static ssize_t wlan_hdd_state_ctrl_param_write(struct file *filp,
 		goto exit;
 	}
 
-	if (strncmp(buf, wlan_on_str, strlen(wlan_on_str)) == 0) {
+	if (strncmp(buf, wlan_on_str, strlen(wlan_on_str)) == 0)
 		pr_info("Wifi Turning On from UI\n");
-	}
 
 	if (strncmp(buf, wlan_on_str, strlen(wlan_on_str)) != 0) {
 		pr_err("Invalid value received from framework");

+ 4 - 3
core/hdd/src/wlan_hdd_ocb.c

@@ -1831,12 +1831,13 @@ static void hdd_dcc_update_ndl_callback(void *context_ptr, void *response_ptr)
 		hdd_err("Obsolete request");
 		return;
 	}
+
 	priv = osif_request_priv(request);
-	if (response && (0 == response->status)) {
+	if (response && (0 == response->status))
 		priv->status = 0;
-	} else {
+	else
 		priv->status = -EINVAL;
-	}
+
 	osif_request_complete(request);
 	osif_request_put(request);
 }