ソースを参照

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
Jeff Johnson 8 年 前
コミット
10251bc9d1
1 ファイル変更2 行追加3 行削除
  1. 2 3
      core/hdd/src/wlan_hdd_driver_ops.c

+ 2 - 3
core/hdd/src/wlan_hdd_driver_ops.c

@@ -171,8 +171,6 @@ static void hdd_deinit_cds_hif_context(void)
 
 	if (status)
 		hdd_err("Failed to reset CDS HIF Context");
-
-	return;
 }
 
 /**
@@ -513,7 +511,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");