浏览代码

qcacmn: Fix build errors generated by gcc 6

Gcc 6 introduces some stricter checking for bool value
comparison, causing build errors when a certain code
block in CLD3.x driver is compiled.

Change-Id: I270e20dab8410f45e734c15d5365e30e314b55c8
CRs-Fixed: 2051383
wadesong 8 年之前
父节点
当前提交
6211cb6b56
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 0 7
      utils/fwlog/dbglog_host.c

+ 0 - 7
utils/fwlog/dbglog_host.c

@@ -1359,13 +1359,6 @@ int dbglog_report_enable(wmi_unified_t wmi_handle, bool isenable)
 {
 	int bitmap[2] = { 0 };
 
-	if (isenable > true) {
-		AR_DEBUG_PRINTF(ATH_DEBUG_ERR,
-				("dbglog_report_enable:Invalid value %d\n",
-				 isenable));
-		return -EINVAL;
-	}
-
 	if (isenable) {
 		/* set the vap enable bitmap */
 		dbglog_set_vap_enable_bitmap(wmi_handle, 0xFFFF);