ソースを参照

qcacld-3.0: Fix missing break statement issue in between switch cases

Here the case is designed to fall through to the next case. So,
add a /* fallthrough */ comment where the break is expected.

Change-Id: Ide5b530c9b817a269fcee4ece679476930797ae7
CRs-Fixed: 2233186
Alok Kumar 7 年 前
コミット
b5a33a25cb
1 ファイル変更4 行追加0 行削除
  1. 4 0
      core/hdd/src/wlan_hdd_main.c

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

@@ -10654,12 +10654,16 @@ void hdd_dp_trace_init(struct hdd_config *config)
 	switch (num_entries) {
 	case 4:
 		proto_bitmap = config_params[3];
+		/* fall through */
 	case 3:
 		verbosity = config_params[2];
+		/* fall through */
 	case 2:
 		thresh = config_params[1];
+		/* fall through */
 	case 1:
 		live_mode = config_params[0];
+		/* fall through */
 	default:
 		hdd_debug("live_mode %u thresh %u time_limit %u verbosity %u bitmap 0x%x",
 			live_mode, thresh, thresh_time_limit,