瀏覽代碼

qcacld-3.0: add fallthrough statement to fix compile error

Add fallthrough statement to identify intentional fall-through case.

Change-Id: I563cec88808a8e72e136e67ca81de1a0105c8e60
CRs-Fixed: 3033125
Yu Wang 3 年之前
父節點
當前提交
cfeefec851
共有 1 個文件被更改,包括 3 次插入5 次删除
  1. 3 5
      core/hdd/src/wlan_hdd_tsf.c

+ 3 - 5
core/hdd/src/wlan_hdd_tsf.c

@@ -1133,11 +1133,9 @@ static void hdd_update_timestamp(struct hdd_adapter *adapter)
 			break;
 		}
 		hdd_warn("Reach the max continuous error count");
-		/*
-		 * fall through:
-		 * If reach MAX_CONTINUOUS_ERROR_CNT, treat it as a
-		 * valid pair
-		 */
+
+		/* If reach MAX_CONTINUOUS_ERROR_CNT, treat it as valid pair */
+		/* fallthrough */
 	case HDD_TS_STATUS_READY:
 		adapter->last_target_time = adapter->cur_target_time;
 		adapter->last_target_global_tsf_time =