소스 검색

qcacmn: Fix 'variables may be used uninitialized' issue

Set default value for 'offset' to fix the compile issue
'variables may be used uninitialized'.

Change-Id: Ib8db38140463fb543b1d98f19743b3a3a7fded4c
CRs-Fixed: 3345183
Chaoli Zhou 2 년 전
부모
커밋
45859216d6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      target_if/direct_buf_rx/src/target_if_direct_buf_rx_main.c

+ 1 - 1
target_if/direct_buf_rx/src/target_if_direct_buf_rx_main.c

@@ -1391,7 +1391,7 @@ static QDF_STATUS target_if_dbr_fill_ring(struct wlan_objmgr_pdev *pdev,
 	struct direct_buf_rx_buf_info *dbr_buf_pool;
 	void *buf_vaddr_unaligned, *buf_vaddr_aligned;
 	QDF_STATUS status;
-	uint8_t offset;
+	uint8_t offset = 0;
 
 	direct_buf_rx_enter();