소스 검색

qcacld-3.0: Add break statement in switch case

The API wma_inc_wow_stats lacks a break in switch case
after WOW_REASON_OEM_RESPONSE_EVENT. Due to this
execution falls through to the next case statement or
default.

Fix is to add a break after WOW_REASON_OEM_RESPONSE_EVENT

Change-Id: I0b95fd55403b29d74a471f038e518c58c81cfcf7
CRs-Fixed: 2233189
gaurank kathpalia 7 년 전
부모
커밋
3a1059e43b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      core/wma/src/wma_features.c

+ 1 - 0
core/wma/src/wma_features.c

@@ -1847,6 +1847,7 @@ static void wma_inc_wow_stats(t_wma_handle *wma,
 		break;
 	case WOW_REASON_OEM_RESPONSE_EVENT:
 		stats->oem_response++;
+		break;
 	case WOW_REASON_11D_SCAN:
 		stats->scan_11d++;
 		break;